1 #include <QtGui/QApplication>
2 #include "qmlapplicationviewer.h"
3 #include "applicationcontroller.h"
5 #include <qdeclarative.h>
6 #include <QDeclarativeContext>
10 #include "installedfontinfo.h"
11 #include "fontsconfigproperties.h"
13 Q_DECL_EXPORT int main(int argc, char *argv[])
15 QScopedPointer<QApplication> app(createApplication(argc, argv));
17 ApplicationController appController;
19 qmlRegisterType<FontsConfigProperties>();
20 qmlRegisterType<FontInfo>();
21 qmlRegisterType<InstalledFontInfo>();
23 QmlApplicationViewer viewer;
24 viewer.rootContext()->setContextProperty("controller", &appController);
25 viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
26 viewer.setMainQmlFile(QLatin1String("qml/fontmanager/main.qml"));
27 viewer.showExpanded();