main.cpp Example File
filtereddatamodel/src/main.cpp
#include <bb/cascades/Application>
#include <QtCore/QLocale>
#include <QtCore/QTranslator>
#include "app.hpp"
using ::bb::cascades::Application;
Q_DECL_EXPORT int main(int argc, char **argv)
{
Application app(argc, argv);
QTranslator translator;
const QString locale_string = QLocale().name();
const QString filename = QString("filtereddatamodel_%1").arg(locale_string);
if (translator.load(filename, "app/native/qm")) {
app.installTranslator(&translator);
}
App mainApp;
return Application::exec();
}