Changeset View
Changeset View
Standalone View
Standalone View
decorations/decoratedclient.h
Show All 17 Lines | |||||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #ifndef KWIN_DECORATED_CLIENT_H | 20 | #ifndef KWIN_DECORATED_CLIENT_H | ||
21 | #define KWIN_DECORATED_CLIENT_H | 21 | #define KWIN_DECORATED_CLIENT_H | ||
22 | #include "options.h" | 22 | #include "options.h" | ||
23 | 23 | | |||
24 | #include <KDecoration2/Private/DecoratedClientPrivate> | 24 | #include <KDecoration2/Private/DecoratedClientPrivate> | ||
25 | 25 | | |||
26 | #include <QDeadlineTimer> | ||||
26 | #include <QObject> | 27 | #include <QObject> | ||
28 | #include <QTimer> | ||||
27 | 29 | | |||
28 | namespace KWin | 30 | namespace KWin | ||
29 | { | 31 | { | ||
30 | 32 | | |||
31 | class AbstractClient; | 33 | class AbstractClient; | ||
32 | 34 | | |||
33 | namespace Decoration | 35 | namespace Decoration | ||
34 | { | 36 | { | ||
▲ Show 20 Lines • Show All 69 Lines • ▼ Show 20 Line(s) | 105 | private Q_SLOTS: | |||
104 | void delayedRequestToggleMaximization(Options::WindowOperation operation); | 106 | void delayedRequestToggleMaximization(Options::WindowOperation operation); | ||
105 | 107 | | |||
106 | private: | 108 | private: | ||
107 | void createRenderer(); | 109 | void createRenderer(); | ||
108 | AbstractClient *m_client; | 110 | AbstractClient *m_client; | ||
109 | QSize m_clientSize; | 111 | QSize m_clientSize; | ||
110 | Renderer *m_renderer; | 112 | Renderer *m_renderer; | ||
111 | QMetaObject::Connection m_compositorToggledConnection; | 113 | QMetaObject::Connection m_compositorToggledConnection; | ||
114 | | ||||
115 | QString m_toolTipText; | ||||
116 | QTimer m_toolTipWakeUp; | ||||
117 | QDeadlineTimer m_toolTipFallAsleep; | ||||
graesslin: I don't understand the need of this timer. It's not connected to anything. If you want to… | |||||
I changed it to QDeadlineTimer which seems to be better suited for this use case. aleksejshilin: > If you want to measure elapsed time, please use QElapsedTimer.
I changed it to… | |||||
graesslin: very nice. I haven't knew that class yet. | |||||
112 | }; | 118 | }; | ||
113 | 119 | | |||
114 | } | 120 | } | ||
115 | } | 121 | } | ||
116 | 122 | | |||
117 | #endif | 123 | #endif |
I don't understand the need of this timer. It's not connected to anything. If you want to measure elapsed time, please use QElapsedTimer.