Changeset View
Changeset View
Standalone View
Standalone View
src/qmlplugins.cpp
Show All 23 Lines | |||||
24 | #include "tagmodel.h" | 24 | #include "tagmodel.h" | ||
25 | #include "imagelocationmodel.h" | 25 | #include "imagelocationmodel.h" | ||
26 | #include "imagetimemodel.h" | 26 | #include "imagetimemodel.h" | ||
27 | #include "imagefoldermodel.h" | 27 | #include "imagefoldermodel.h" | ||
28 | #include "sortmodel.h" | 28 | #include "sortmodel.h" | ||
29 | #include "allimagesmodel.h" | 29 | #include "allimagesmodel.h" | ||
30 | #include "fileinfo.h" | 30 | #include "fileinfo.h" | ||
31 | #include "imagelistmodel.h" | 31 | #include "imagelistmodel.h" | ||
32 | #include "notificationmanager.h" | ||||
32 | #include "types.h" | 33 | #include "types.h" | ||
33 | #include "roles.h" | 34 | #include "roles.h" | ||
34 | 35 | | |||
35 | #include <QtQml/qqml.h> | 36 | #include <QtQml/qqml.h> | ||
36 | 37 | | |||
37 | void QmlPlugins::initializeEngine(QQmlEngine *, const char *) | 38 | void QmlPlugins::initializeEngine(QQmlEngine *, const char *) | ||
38 | { | 39 | { | ||
39 | } | 40 | } | ||
40 | 41 | | |||
41 | void QmlPlugins::registerTypes(const char *uri) | 42 | void QmlPlugins::registerTypes(const char *uri) | ||
42 | { | 43 | { | ||
43 | qmlRegisterType<QAbstractItemModel> (); | 44 | qmlRegisterType<QAbstractItemModel> (); | ||
44 | qmlRegisterType<TagModel> (uri, 0, 1, "TagModel"); | 45 | qmlRegisterType<TagModel> (uri, 0, 1, "TagModel"); | ||
45 | qmlRegisterType<ImageLocationModel> (uri, 0, 1, "ImageLocationModel"); | 46 | qmlRegisterType<ImageLocationModel> (uri, 0, 1, "ImageLocationModel"); | ||
46 | qmlRegisterType<ImageTimeModel> (uri, 0, 1, "ImageTimeModel"); | 47 | qmlRegisterType<ImageTimeModel> (uri, 0, 1, "ImageTimeModel"); | ||
47 | qmlRegisterType<ImageFolderModel> (uri, 0, 1, "ImageFolderModel"); | 48 | qmlRegisterType<ImageFolderModel> (uri, 0, 1, "ImageFolderModel"); | ||
48 | qmlRegisterType<AllImagesModel> (uri, 0, 1, "AllImagesModel"); | 49 | qmlRegisterType<AllImagesModel> (uri, 0, 1, "AllImagesModel"); | ||
49 | qmlRegisterType<Jungle::SortModel> (uri, 0, 1, "SortModel"); | 50 | qmlRegisterType<Jungle::SortModel> (uri, 0, 1, "SortModel"); | ||
50 | qmlRegisterType<FileInfo> (uri, 0, 1, "FileInfo"); | 51 | qmlRegisterType<FileInfo> (uri, 0, 1, "FileInfo"); | ||
51 | qmlRegisterType<ImageListModel> (uri, 0, 1, "ImageListModel"); | 52 | qmlRegisterType<ImageListModel> (uri, 0, 1, "ImageListModel"); | ||
53 | qmlRegisterType<NotificationManager> (uri, 0, 1, "NotificationManager"); | ||||
52 | qmlRegisterUncreatableType<Types>(uri, 0, 1, "Types", "Cannot instantiate the Types class"); | 54 | qmlRegisterUncreatableType<Types>(uri, 0, 1, "Types", "Cannot instantiate the Types class"); | ||
53 | qmlRegisterUncreatableType<Roles>(uri, 0, 1, "Roles", "Cannot instantiate the Roles class"); | 55 | qmlRegisterUncreatableType<Roles>(uri, 0, 1, "Roles", "Cannot instantiate the Roles class"); | ||
54 | } | 56 | } |