enable a few more things

This commit is contained in:
Sebastian Kügler 2013-03-26 22:54:37 +01:00
parent a0fb4356dc
commit 498dcb30b6
4 changed files with 16 additions and 15 deletions

View File

@ -20,7 +20,7 @@ X-KDE-ServiceTypes=Plasma/Applet
X-Plasma-API=declarativeappletscript X-Plasma-API=declarativeappletscript
X-KDE-ParentApp= X-KDE-ParentApp=
X-KDE-PluginInfo-Author=Sebastian Kügler X-KDE-PluginInfo-Author=Sebastian Kügler
X-KDE-PluginInfo-Category= X-KDE-PluginInfo-Category=Development Tools
X-KDE-PluginInfo-Email=sebas@kde.org X-KDE-PluginInfo-Email=sebas@kde.org
X-KDE-PluginInfo-License=GPLv2+ X-KDE-PluginInfo-License=GPLv2+
X-KDE-PluginInfo-Name=org.kde.testcomponentsapplet X-KDE-PluginInfo-Name=org.kde.testcomponentsapplet

View File

@ -10,6 +10,7 @@ Name[sk]=Test Shadera
Name[sv]=Skuggningstest Name[sv]=Skuggningstest
Name[uk]=Тестування підпрограм побудови тіней Name[uk]=Тестування підпрограм побудови тіней
Name[x-test]=xxShader Testxx Name[x-test]=xxShader Testxx
Comment=Futzing with Visual Effects
Type=Service Type=Service
Icon=plasma Icon=plasma
@ -17,7 +18,7 @@ X-KDE-ServiceTypes=Plasma/Applet
X-Plasma-API=declarativeappletscript X-Plasma-API=declarativeappletscript
X-KDE-ParentApp= X-KDE-ParentApp=
X-KDE-PluginInfo-Author=Sebastian Kügler X-KDE-PluginInfo-Author=Sebastian Kügler
X-KDE-PluginInfo-Category= X-KDE-PluginInfo-Category=Graphics
X-KDE-PluginInfo-Email=sebas@kde.org X-KDE-PluginInfo-Email=sebas@kde.org
X-KDE-PluginInfo-License=GPLv2+ X-KDE-PluginInfo-License=GPLv2+
X-KDE-PluginInfo-Name=org.kde.testshaderapplet X-KDE-PluginInfo-Name=org.kde.testshaderapplet

View File

@ -40,6 +40,8 @@ Item {
property Item getWidgetsButton property Item getWidgetsButton
property Item categoryButton property Item categoryButton
function i18n(inp) { return inp; }
PlasmaComponents.ContextMenu { PlasmaComponents.ContextMenu {
id: categoriesDialog id: categoriesDialog
visualParent: main.categoryButton visualParent: main.categoryButton
@ -72,15 +74,15 @@ Item {
Repeater { Repeater {
parent: getWidgetsDialog parent: getWidgetsDialog
model: widgetExplorer.widgetsMenuActions model: widgetExplorer.widgetsMenuActions
// delegate: PlasmaComponents.MenuItem { delegate: PlasmaComponents.MenuItem {
// icon: modelData.icon icon: modelData.icon
// text: modelData.text text: modelData.text
// separator: modelData.separator separator: modelData.separator
// onClicked: modelData.trigger() onClicked: modelData.trigger()
// Component.onCompleted: { Component.onCompleted: {
// parent = getWidgetsDialog parent = getWidgetsDialog
// } }
// } }
} }
PlasmaCore.Dialog { PlasmaCore.Dialog {

View File

@ -70,11 +70,9 @@ void WidgetExplorerView::init()
connect(this, &QQuickView::visibleChanged, this, &WidgetExplorerView::widgetExplorerClosed); connect(this, &QQuickView::visibleChanged, this, &WidgetExplorerView::widgetExplorerClosed);
setResizeMode(QQuickView::SizeRootObjectToView); setResizeMode(QQuickView::SizeRootObjectToView);
m_widgetExplorer->setContainment(m_containment); m_widgetExplorer->setContainment(m_containment);
} }
void WidgetExplorerView::setContainment(Plasma::Containment* c) void WidgetExplorerView::setContainment(Plasma::Containment* c)
{ {
m_containment = c; m_containment = c;
@ -96,7 +94,7 @@ void WidgetExplorerView::setContainment(Plasma::Containment* c)
void WidgetExplorerView::widgetExplorerClosed(bool visible) void WidgetExplorerView::widgetExplorerClosed(bool visible)
{ {
if (!visible) { if (!visible) {
deleteLater(); //deleteLater();
//m_widgetExplorerView = 0; //m_widgetExplorerView = 0;
} }
} }