diff options
author | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2012-09-05 16:15:39 -0300 |
---|---|---|
committer | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2012-09-05 16:15:39 -0300 |
commit | 0dfd3d4cd4214a732e4a5cda59fd4dfc082b8425 (patch) | |
tree | a4d1d4e876e31a1265581ee89c673eb66aaaae8d /src/QMenuModel/plugin.cpp | |
download | qmenumodel-0dfd3d4cd4214a732e4a5cda59fd4dfc082b8425.tar.gz qmenumodel-0dfd3d4cd4214a732e4a5cda59fd4dfc082b8425.tar.bz2 qmenumodel-0dfd3d4cd4214a732e4a5cda59fd4dfc082b8425.zip |
Initial import.
Diffstat (limited to 'src/QMenuModel/plugin.cpp')
-rw-r--r-- | src/QMenuModel/plugin.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/QMenuModel/plugin.cpp b/src/QMenuModel/plugin.cpp new file mode 100644 index 0000000..e6a828b --- /dev/null +++ b/src/QMenuModel/plugin.cpp @@ -0,0 +1,15 @@ +#include "plugin.h" +#include "qmenumodel.h" +#include "qdbusmenumodel.h" + +#include <QtDeclarative> + + +void QMenuModelQmlPlugin::registerTypes(const char *uri) +{ + qmlRegisterUncreatableType<QMenuModel>(uri, 1, 0, "QMenuModel", + "QMenuModel is a interface"); + qmlRegisterType<QDBusMenuModel>(uri, 1, 0, "QDBusMenuModel"); +} + +Q_EXPORT_PLUGIN2(qmenumodel, QMenuModelQmlPlugin) |