X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fclient%2Fmodels%2FPlugin.cpp;fp=src%2Fclient%2Fmodels%2FPlugin.cpp;h=0000000000000000000000000000000000000000;hb=df37f9235ec253566e7f88017c1775d34fe1392a;hp=a6c61650c8da53abc9f0f4ec93b235df81c09a22;hpb=711f20225524f059da9296f814a06ab9332bb324;p=qtrapids diff --git a/src/client/models/Plugin.cpp b/src/client/models/Plugin.cpp deleted file mode 100644 index a6c6165..0000000 --- a/src/client/models/Plugin.cpp +++ /dev/null @@ -1,19 +0,0 @@ -#include -#include -#include - -// This class is needed to make DownloadListModel class available to QML: -class QmlDownloadListModelPlugin : public QDeclarativeExtensionPlugin -{ - Q_OBJECT -public: - virtual void registerTypes(const char *uri) - { - Q_ASSERT(QLatin1String(uri) == QLatin1String("Qt.labs.downloadlistmodel")); - qmlRegisterType(uri, 1, 0, "DownloadListModel"); - } -}; - -#include "moc_Plugin.cxx" - -Q_EXPORT_PLUGIN2(downloadlistmodelplugin, QT_PREPEND_NAMESPACE(QmlDownloadListModelPlugin)); \ No newline at end of file