55#include < QQmlApplicationEngine>
66#include < QQmlContext>
77
8- # include " src/notmuch/thread.h "
9- #include " src/ notmuch/threads .h"
10- #include " src/notmuch/database .h"
11- #include " src/notmuch/tags .h"
8+
9+ #include " notmuch/database .h"
10+ #include " mime/fileentity .h"
11+ #include " mime/mytest .h"
1212
1313notmuch::DatabaseProxy *proxy = 0 ;
1414
@@ -24,12 +24,13 @@ int main(int argc, char *argv[])
2424 db.open ();
2525 proxy = new notmuch::DatabaseProxy (&db); // owned by QML, so GC-ed later
2626
27- qmlRegisterSingletonType<notmuch::Database>(" Notmuch" , 1 , 0 , " NotmuchDatabase" , databaseSingleton);
28- // qmlRegisterType<notmuch::Threads>("Notmuch", 1, 0, "NotmuchThreads");
29- // qmlRegisterType<notmuch::Tags>("Notmuch", 1, 0, "NotmuchTags");
27+ qmlRegisterSingletonType<notmuch::Database>(" Notquick" , 1 , 0 , " NotmuchDatabase" , databaseSingleton);
28+ qmlRegisterType<mime::FileEntity>(" Notquick" , 1 , 0 , " MimeFileEntity" );
29+
30+ qmlRegisterType<MyTest>(" Notquick" , 1 , 0 , " NQTest" );
3031
31- QApplication app (argc, argv);
32- QQmlApplicationEngine engine;
32+ QApplication app (argc, argv); // TODO maybe switch to QGuiApplication
33+ QQmlApplicationEngine engine; // TODO maybe switch to QQmlEngine
3334
3435 engine.load (QUrl (QStringLiteral (" qrc:/main.qml" )));
3536
0 commit comments