Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (19 sloc) 730 Bytes
#include <QtGui/QApplication>
#include "qmlapplicationviewer.h"
#include <QDeclarativeContext>
#include "kipptconnector.h"
#include "sharehelper.h"
Q_DECL_EXPORT int main(int argc, char *argv[])
{
QScopedPointer<QApplication> app(createApplication(argc, argv));
QmlApplicationViewer viewer;
QDeclarativeContext *ctxt = viewer.rootContext();
KipptConnector *connector = new KipptConnector();
ctxt->setContextProperty("KipptConnector", connector);
ShareHelper sh;
ctxt->setContextProperty("Share", &sh);
viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
viewer.setMainQmlFile(QLatin1String("qml/klippr/main.qml"));
viewer.showExpanded();
return app->exec();
}
Something went wrong with that request. Please try again.