add widgetexplorer button in testcontainment
This commit is contained in:
parent
12f481e50a
commit
60fda41cfe
@ -199,6 +199,18 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
PlasmaCore.IconItem {
|
||||||
|
width: 24
|
||||||
|
height: 24
|
||||||
|
source: "list-add"
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
onClicked: {
|
||||||
|
print("Add widgets ...");
|
||||||
|
plasmoid.action("add widgets").trigger();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
print("Test Containment loaded")
|
print("Test Containment loaded")
|
||||||
|
@ -271,6 +271,7 @@ QList<QObject *> WidgetExplorer::extraActions() const
|
|||||||
// foreach (QAction *action, actions()) { // FIXME: where did actions() come from?
|
// foreach (QAction *action, actions()) { // FIXME: where did actions() come from?
|
||||||
// actionList << action;
|
// actionList << action;
|
||||||
// }
|
// }
|
||||||
|
qWarning() << "extraactions needs reimplementation";
|
||||||
return actionList;
|
return actionList;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -297,6 +298,10 @@ void WidgetExplorerPrivate::initRunningApplets()
|
|||||||
QObject::connect(containment, SIGNAL(appletAdded(Plasma::Applet*)), q, SLOT(appletAdded(Plasma::Applet*)));
|
QObject::connect(containment, SIGNAL(appletAdded(Plasma::Applet*)), q, SLOT(appletAdded(Plasma::Applet*)));
|
||||||
QObject::connect(containment, SIGNAL(appletRemoved(Plasma::Applet*)), q, SLOT(appletRemoved(Plasma::Applet*)));
|
QObject::connect(containment, SIGNAL(appletRemoved(Plasma::Applet*)), q, SLOT(appletRemoved(Plasma::Applet*)));
|
||||||
|
|
||||||
|
// FIXME: this doesn't work with private slots
|
||||||
|
// QObject::connect(containment, &Containment::appletAdded, q, &WidgetExplorerPrivate::appletAdded);
|
||||||
|
// QObject::connect(containment, &Containment::appletRemoved, q, &WidgetExplorerPrivate::appletRemoved);
|
||||||
|
|
||||||
foreach (Applet *applet, containment->applets()) {
|
foreach (Applet *applet, containment->applets()) {
|
||||||
runningApplets[applet->pluginInfo().pluginName()]++;
|
runningApplets[applet->pluginInfo().pluginName()]++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user