register types for {QImage|QPixmap}Item

This commit is contained in:
Sebastian Kügler 2013-02-15 00:24:30 +01:00
parent a283134b3e
commit 57bac0cdaa
2 changed files with 4 additions and 6 deletions

View File

@ -1,7 +1,5 @@
project(qtextracomponents)
#include(KDE4Defaults)
add_subdirectory(tests)
set(qtextracomponents_SRCS

View File

@ -24,8 +24,8 @@
#include <QtQml>
#include <QDebug>
// #include "qpixmapitem.h"
// #include "qimageitem.h"
#include "qpixmapitem.h"
#include "qimageitem.h"
#include "qiconitem.h"
#include "mouseeventlistener.h"
#include "columnproxymodel.h"
@ -39,8 +39,8 @@ void QtExtraComponentsPlugin::registerTypes(const char *uri)
{
Q_ASSERT(uri == QLatin1String("org.kde.qtextracomponents"));
qDebug() << "=========> import loading: " << uri;
// qmlRegisterType<QPixmapItem>(uri, 0, 1, "QPixmapItem");
// qmlRegisterType<QImageItem>(uri, 0, 1, "QImageItem");
qmlRegisterType<QPixmapItem>(uri, 0, 1, "QPixmapItem");
qmlRegisterType<QImageItem>(uri, 0, 1, "QImageItem");
qmlRegisterType<QIconItem>(uri, 0, 1, "QIconItem");
qmlRegisterType<MouseEventListener>(uri, 0, 1, "MouseEventListener");
qmlRegisterType<ColumnProxyModel>(uri, 0, 1, "ColumnProxyModel");