Marco Martin has uploaded a new change for review. https://gerrit.vesnicky.cesnet.cz/r/218
Change subject: Different themes between desktop and dialogs ...................................................................... Different themes between desktop and dialogs different themes between QtControl themes in applets and in config dialogs: this allows QtQuickControls to be freely usable in applets without worrying how they will integrate Change-Id: I696bdcbd78eb2e4df708367ac0d70d13c5d6cf12 --- M src/plasmaquick/appletquickitem.cpp M src/plasmaquick/view.cpp 2 files changed, 24 insertions(+), 0 deletions(-) git pull ssh://gerrit.vesnicky.cesnet.cz:29418/plasma-framework refs/changes/18/218/1 diff --git a/src/plasmaquick/appletquickitem.cpp b/src/plasmaquick/appletquickitem.cpp index 6ec12b9..06406a4 100644 --- a/src/plasmaquick/appletquickitem.cpp +++ b/src/plasmaquick/appletquickitem.cpp @@ -435,6 +435,18 @@ engine->setUrlInterceptor(interceptor); } + QQmlComponent c(engine); + c.setData("import QtQuick 2.1\n\ + import QtQuick.Controls 1.0\n\ + import QtQuick.Controls.Private 1.0\n \ + Item {\ + Component.onCompleted: {\ + Settings.styleName = \"Base\";\ + }\ + }", QUrl()); + QObject *o = c.create(); + o->deleteLater(); + d->qmlObject->setSource(QUrl::fromLocalFile(d->applet->package().filePath("mainscript"))); if (!engine || !engine->rootContext() || !engine->rootContext()->isValid() || !d->qmlObject->mainComponent() || d->qmlObject->mainComponent()->isError()) { diff --git a/src/plasmaquick/view.cpp b/src/plasmaquick/view.cpp index 1d1b506..1c981ae 100644 --- a/src/plasmaquick/view.cpp +++ b/src/plasmaquick/view.cpp @@ -196,6 +196,18 @@ qWarning() << "Invalid home screen package"; } + QQmlComponent c(engine()); + c.setData("import QtQuick 2.1\n\ + import QtQuick.Controls 1.0\n\ + import QtQuick.Controls.Private 1.0\n \ + Item {\ + Component.onCompleted: {\ + Settings.styleName = \"Base\";\ + }\ + }", QUrl()); + QObject *o = c.create(); + o->deleteLater(); + setResizeMode(View::SizeRootObjectToView); } -- To view, visit https://gerrit.vesnicky.cesnet.cz/r/218 To unsubscribe, visit https://gerrit.vesnicky.cesnet.cz/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I696bdcbd78eb2e4df708367ac0d70d13c5d6cf12 Gerrit-PatchSet: 1 Gerrit-Project: plasma-framework Gerrit-Branch: master Gerrit-Owner: Marco Martin <notm...@gmail.com> _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel