22 #ifndef CARDWINDOWMANAGERSTATES_H
23 #define CARDWINDOWMANAGERSTATES_H
28 #include <QGraphicsSceneMouseEvent>
30 #include <QSignalTransition>
31 #include <QGraphicsItem>
40 class QTapAndHoldGesture;
51 #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
52 virtual void mousePressEvent(QGraphicsSceneMouseEvent* event);
53 virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event) {}
54 virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event) {}
55 #endif // QT_VERSION < 5.0.0
75 virtual void relayout(
const QRectF& r,
bool animate=
true) {}
81 #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
105 #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
106 virtual void mousePressEvent(QGraphicsSceneMouseEvent* event);
107 virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event);
108 virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event);
109 #endif // QT_VERSION < 5.0.0
118 virtual void relayout(
const QRectF& r,
bool animate);
122 #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
144 #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
145 virtual void mousePressEvent(QGraphicsSceneMouseEvent* event);
146 #endif // QT_VERSION < 5.0.0
158 virtual void relayout(
const QRectF& r,
bool animate=
true);
171 void slotIncomingPhoneCall();
174 void finishMaximizingActiveWindow();
177 int m_disableDirectRendering;
212 #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
213 virtual void mousePressEvent(QGraphicsSceneMouseEvent* event);
214 #endif // QT_VERSION < 5.0.0
221 #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
237 #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
238 virtual void mousePressEvent(QGraphicsSceneMouseEvent* event);
239 #endif // QT_VERSION < 5.0.0
247 virtual void relayout(
const QRect& r,
bool animate);
249 #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
264 void paint(QPainter* painter,
const QStyleOptionGraphicsItem*, QWidget*);
269 QRectF m_boundingRect;
279 #if (QT_VERSION < QT_VERSION_CHECK(5,0,0))
280 virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event);
281 virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event);
282 #endif // QT_VERSION < 5.0.0
286 #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))