remove manus from plasmoid.actions

not really solution-solution, but not really other ways due to QAction api
so will stay this way for a long time
CCBUG:338317
This commit is contained in:
Marco Martin 2014-08-21 21:19:59 +02:00
parent 8596689f2c
commit 0f0006e4a9

View File

@ -639,7 +639,11 @@ QList<QObject *> ContainmentInterface::actions() const
//use a multimap to sort by action type //use a multimap to sort by action type
QMultiMap<int, QObject *> actions; QMultiMap<int, QObject *> actions;
foreach (QAction *a, m_containment->actions()->actions()) { foreach (QAction *a, m_containment->actions()->actions()) {
actions.insert(a->data().toInt(), a); //FIXME QML visualizations don't support menus for now, *and* there is no way to
//distinguish them on QML side
if (!a->menu()) {
actions.insert(a->data().toInt(), a);
}
} }
foreach (QAction *a, m_containment->corona()->actions()->actions()) { foreach (QAction *a, m_containment->corona()->actions()->actions()) {
if (a->objectName() == QStringLiteral("lock widgets")) { if (a->objectName() == QStringLiteral("lock widgets")) {