Changeset View
Changeset View
Standalone View
Standalone View
tests/osd/osdtest.cpp
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Line(s) | 80 | } else { | |||
---|---|---|---|---|---|
81 | qCWarning(KSCREEN_KDED) << "Implement me."; | 81 | qCWarning(KSCREEN_KDED) << "Implement me."; | ||
82 | QTimer::singleShot(100, qApp, &QCoreApplication::quit); | 82 | QTimer::singleShot(100, qApp, &QCoreApplication::quit); | ||
83 | } | 83 | } | ||
84 | } | 84 | } | ||
85 | 85 | | |||
86 | void OsdTest::showActionSelector() | 86 | void OsdTest::showActionSelector() | ||
87 | { | 87 | { | ||
88 | if (!m_useDBus) { | 88 | if (!m_useDBus) { | ||
89 | auto action = getOsdManager()->showActionSelector(); | 89 | auto action = getOsdManager()->showActionSelector(true); | ||
90 | connect(action, &KScreen::OsdAction::selected, | 90 | connect(action, &KScreen::OsdAction::selected, | ||
91 | [](KScreen::OsdAction::Action action) { | 91 | [](KScreen::OsdAction::Action action) { | ||
92 | qCDebug(KSCREEN_KDED) << "Selected action:" << action; | 92 | qCDebug(KSCREEN_KDED) << "Selected action:" << action; | ||
93 | qApp->quit(); | 93 | qApp->quit(); | ||
94 | }); | 94 | }); | ||
95 | } else { | 95 | } else { | ||
96 | qCWarning(KSCREEN_KDED) << "Implement me."; | 96 | qCWarning(KSCREEN_KDED) << "Implement me."; | ||
97 | QTimer::singleShot(100, qApp, &QCoreApplication::quit); | 97 | QTimer::singleShot(100, qApp, &QCoreApplication::quit); | ||
98 | } | 98 | } | ||
99 | } | 99 | } | ||
100 | 100 | | |||
101 | } // ns | 101 | } // ns |