Changeset View
Changeset View
Standalone View
Standalone View
shell/shellcorona.cpp
Show First 20 Lines • Show All 1629 Lines • ▼ Show 20 Line(s) | |||||
1630 | 1630 | | |||
1631 | void ShellCorona::updateStruts() | 1631 | void ShellCorona::updateStruts() | ||
1632 | { | 1632 | { | ||
1633 | foreach(PanelView* view, m_panelViews) { | 1633 | foreach(PanelView* view, m_panelViews) { | ||
1634 | view->updateStruts(); | 1634 | view->updateStruts(); | ||
1635 | } | 1635 | } | ||
1636 | } | 1636 | } | ||
1637 | 1637 | | |||
1638 | | ||||
1639 | void ShellCorona::activateLauncherMenu() | ||||
1640 | { | ||||
1641 | for (auto it = m_panelViews.constBegin(), end = m_panelViews.constEnd(); it != end; ++it) { | ||||
broulik: ++it? | |||||
1642 | const auto applets = it.key()->applets(); | ||||
1643 | for (auto applet : applets) { | ||||
1644 | if (applet->pluginInfo().property("X-Plasma-Provides").toStringList().contains(QStringLiteral("org.kde.plasma.launchermenu"))) { | ||||
broulik: X-Plasma-Provides is a QStringList | |||||
1645 | if (!applet->globalShortcut().isEmpty()) { | ||||
1646 | emit applet->activated(); | ||||
the way i can see it breaking is if an user has 2 menus with 2 different shortcuts (extremely unlikely and weird, but i don't get surprised by anything anymore) mart: the way i can see it breaking is if an user has 2 menus with 2 different shortcuts (extremely… | |||||
1647 | return; | ||||
1648 | } | ||||
1649 | } | ||||
1650 | } | ||||
1651 | } | ||||
1652 | } | ||||
1653 | | ||||
1638 | // Desktop corona handler | 1654 | // Desktop corona handler | ||
1639 | 1655 | | |||
1640 | 1656 | | |||
1641 | #include "moc_shellcorona.cpp" | 1657 | #include "moc_shellcorona.cpp" | ||
1642 | 1658 | |
++it?