A whole bunch of types in PlasmaCore
This enables, ports where necessary, the rest of the DataEngine classes, ServiceJob handling, and RunnerManager. Now, more or less only Dialog and ToolTip are unported. Those will need reimplementations for QtQuick2.
This commit is contained in:
parent
8fa8e6675b
commit
6c6acb9944
@ -16,7 +16,7 @@ set(corebindings_SRCS
|
||||
theme.cpp
|
||||
datamodel.cpp
|
||||
datasource.cpp
|
||||
# runnermodel.cpp
|
||||
runnermodel.cpp
|
||||
svgitem.cpp
|
||||
framesvgitem.cpp
|
||||
# dialog.cpp
|
||||
|
@ -29,12 +29,13 @@
|
||||
|
||||
#include <plasma/framesvg.h>
|
||||
#include <plasma/svg.h>
|
||||
// #include <Plasma/QueryMatch>
|
||||
#include <Plasma/QueryMatch>
|
||||
#include <Plasma/ServiceJob>
|
||||
|
||||
#include "datasource.h"
|
||||
#include "datamodel.h"
|
||||
#include "framesvgitem.h"
|
||||
// #include "runnermodel.h"
|
||||
#include "runnermodel.h"
|
||||
#include "svgitem.h"
|
||||
#include "theme.h"
|
||||
// #include "dialog.h"
|
||||
@ -87,21 +88,21 @@ void CoreBindingsPlugin::registerTypes(const char *uri)
|
||||
// qmlRegisterType<DialogProxy>(uri, 0, 1, "Dialog");
|
||||
// qmlRegisterType<ToolTipProxy>(uri, 0, 1, "ToolTip");
|
||||
//
|
||||
// qmlRegisterInterface<Plasma::Service>("Service");
|
||||
// qRegisterMetaType<Plasma::Service*>("Service");
|
||||
// qmlRegisterInterface<Plasma::ServiceJob>("ServiceJob");
|
||||
// qRegisterMetaType<Plasma::ServiceJob*>("ServiceJob");
|
||||
// qmlRegisterType<QAbstractItemModel>();
|
||||
//
|
||||
// qmlRegisterType<RunnerModel>(uri, 0, 1, "RunnerModel");
|
||||
// qmlRegisterInterface<Plasma::QueryMatch>("QueryMatch");
|
||||
// qRegisterMetaType<Plasma::QueryMatch *>("QueryMatch");
|
||||
//
|
||||
// qmlRegisterType<QQmlPropertyMap>();
|
||||
qmlRegisterInterface<Plasma::Service>("Service");
|
||||
qRegisterMetaType<Plasma::Service*>("Service");
|
||||
qmlRegisterInterface<Plasma::ServiceJob>("ServiceJob");
|
||||
qRegisterMetaType<Plasma::ServiceJob*>("ServiceJob");
|
||||
qmlRegisterType<QAbstractItemModel>();
|
||||
|
||||
qmlRegisterType<RunnerModel>(uri, 0, 1, "RunnerModel");
|
||||
qmlRegisterInterface<Plasma::QueryMatch>("QueryMatch");
|
||||
qRegisterMetaType<Plasma::QueryMatch *>("QueryMatch");
|
||||
|
||||
qmlRegisterType<QQmlPropertyMap>();
|
||||
qmlRegisterType<IconItem>(uri, 0, 1, "IconItem");
|
||||
|
||||
/*qmlRegisterInterface<Plasma::DataSource>("DataSource");
|
||||
qRegisterMetaType<Plasma::DataSource*>("DataSource");*/
|
||||
qmlRegisterInterface<Plasma::DataSource>("DataSource");
|
||||
qRegisterMetaType<Plasma::DataSource*>("DataSource");
|
||||
qDebug() << "====> org.kde.plasma.core registered.";
|
||||
}
|
||||
|
||||
|
@ -23,6 +23,8 @@
|
||||
#include <QAbstractListModel>
|
||||
#include <QStringList>
|
||||
|
||||
#include <Plasma/QueryMatch>
|
||||
|
||||
namespace Plasma
|
||||
{
|
||||
class RunnerManager;
|
||||
|
Loading…
Reference in New Issue
Block a user