X-Git-Url: http://git.maemo.org/git/?p=qtrapids;a=blobdiff_plain;f=src%2Fclient%2Fmodels%2FPlugin.h;fp=src%2Fclient%2Fmodels%2FPlugin.h;h=0000000000000000000000000000000000000000;hp=129970cb0ef683ce7b9ac31be7a58696d22985f1;hb=df37f9235ec253566e7f88017c1775d34fe1392a;hpb=711f20225524f059da9296f814a06ab9332bb324 diff --git a/src/client/models/Plugin.h b/src/client/models/Plugin.h deleted file mode 100644 index 129970c..0000000 --- a/src/client/models/Plugin.h +++ /dev/null @@ -1,18 +0,0 @@ -#include -#include - -#include "QDeclarativeDownloadListModel.h" - -// 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"); - } -}; - -Q_EXPORT_PLUGIN2(downloadlistmodelplugin, QT_PREPEND_NAMESPACE(QmlDownloadListModelPlugin)); \ No newline at end of file