Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/plugin/windowsystem.cpp
Show All 28 Lines | |||||
29 | } | 29 | } | ||
30 | 30 | | |||
31 | WindowSystem::~WindowSystem() | 31 | WindowSystem::~WindowSystem() | ||
32 | { | 32 | { | ||
33 | } | 33 | } | ||
34 | 34 | | |||
35 | bool WindowSystem::eventFilter(QObject* watched, QEvent* event) | 35 | bool WindowSystem::eventFilter(QObject* watched, QEvent* event) | ||
36 | { | 36 | { | ||
37 | if (event->type() == QEvent::FocusOut) { | 37 | if (event->type() == QEvent::FocusIn) { | ||
38 | emit focusOut(qobject_cast<QQuickWindow *>(watched)); | 38 | removeEventFilter(watched); | ||
39 | emit focusIn(qobject_cast<QQuickWindow *>(watched)); | ||||
39 | } | 40 | } | ||
40 | 41 | | |||
41 | return false; | 42 | return false; | ||
42 | } | 43 | } | ||
43 | 44 | | |||
44 | void WindowSystem::forceActive(QQuickItem *item) | 45 | void WindowSystem::forceActive(QQuickItem *item) | ||
45 | { | 46 | { | ||
46 | if (!item || !item->window()) { | 47 | if (!item || !item->window()) { | ||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |