Changeset View
Changeset View
Standalone View
Standalone View
src/platformtheme/kdeplatformsystemtrayicon.cpp
Show First 20 Lines • Show All 269 Lines • ▼ Show 20 Line(s) | 267 | if (!m_sni) { | |||
---|---|---|---|---|---|
270 | m_sni->setTitle(QApplication::applicationDisplayName()); | 270 | m_sni->setTitle(QApplication::applicationDisplayName()); | ||
271 | connect(m_sni, &KStatusNotifierItem::activateRequested, [this](bool active, const QPoint &pos) { | 271 | connect(m_sni, &KStatusNotifierItem::activateRequested, [this](bool active, const QPoint &pos) { | ||
272 | Q_UNUSED(active) | 272 | Q_UNUSED(active) | ||
273 | Q_UNUSED(pos) | 273 | Q_UNUSED(pos) | ||
274 | emit activated(QPlatformSystemTrayIcon::Trigger); | 274 | emit activated(QPlatformSystemTrayIcon::Trigger); | ||
275 | }); | 275 | }); | ||
276 | connect(m_sni, &KStatusNotifierItem::secondaryActivateRequested, [this](const QPoint &pos) { | 276 | connect(m_sni, &KStatusNotifierItem::secondaryActivateRequested, [this](const QPoint &pos) { | ||
277 | Q_UNUSED(pos) | 277 | Q_UNUSED(pos) | ||
278 | emit activated(QPlatformSystemTrayIcon::Context); | 278 | emit activated(QPlatformSystemTrayIcon::MiddleClick); | ||
279 | }); | 279 | }); | ||
280 | } | 280 | } | ||
281 | } | 281 | } | ||
282 | 282 | | |||
283 | void KDEPlatformSystemTrayIcon::cleanup() | 283 | void KDEPlatformSystemTrayIcon::cleanup() | ||
284 | { | 284 | { | ||
285 | delete m_sni; | 285 | delete m_sni; | ||
286 | m_sni = Q_NULLPTR; | 286 | m_sni = Q_NULLPTR; | ||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |