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-KDE-ParentApp=
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-License=GPLv2+
X-KDE-PluginInfo-Name=org.kde.testcomponentsapplet

View File

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

View File

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

View File

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