use PlasmaQuick:: namespace

This commit is contained in:
Marco Martin 2014-03-19 11:59:15 +01:00
parent ac98abf67c
commit 4e03ec61e0
4 changed files with 10 additions and 2 deletions

View File

@ -89,7 +89,7 @@ void CoreBindingsPlugin::registerTypes(const char *uri)
qmlRegisterType<Plasma::DataModel>(uri, 2, 0, "DataModel");
qmlRegisterType<Plasma::SortFilterModel>(uri, 2, 0, "SortFilterModel");
qmlRegisterType<Dialog>(uri, 2, 0, "Dialog");
qmlRegisterType<PlasmaQuick::Dialog>(uri, 2, 0, "Dialog");
qmlRegisterType<ToolTip>(uri, 2, 0, "ToolTipArea");
qmlRegisterInterface<Plasma::Service>("Service");

View File

@ -48,6 +48,9 @@
//Unfortunately QWINDOWSIZE_MAX is not exported
#define DIALOGSIZE_MAX ((1<<24)-1)
namespace PlasmaQuick
{
class DialogPrivate {
public:
DialogPrivate(Dialog *dialog)
@ -795,6 +798,7 @@ void Dialog::setOutputOnly(bool outputOnly)
emit outputOnlyChanged();
}
}
#include "moc_dialog.cpp"

View File

@ -35,6 +35,8 @@ class QQuickItem;
class QScreen;
namespace PlasmaQuick {
class DialogPrivate;
/**
@ -189,4 +191,6 @@ private:
Q_PRIVATE_SLOT(d, void requestSyncToMainItemSize(bool delayed))
};
}
#endif

View File

@ -41,7 +41,7 @@ namespace KDeclarative
*
* Exposed as `ToolTipDialog` in QML.
*/
class ToolTipDialog : public Dialog
class ToolTipDialog : public PlasmaQuick::Dialog
{
Q_OBJECT