30 #include <QFontMetrics>
34 #include <QTextLayout>
35 #include <QStaticText>
43 class QGraphicsSceneMouseEvent;
50 class QTapAndHoldGesture;
55 namespace PageTabDisplayMode
78 PageTab(
const QRectF& pageTabGeometry,
const QString& label,
PageTabBar * p_belongsTo,
Page * p_refersToPage=0);
83 virtual bool testForIntersect(
const QPointF& tabBarPositionICS,
bool highlight=
false);
134 virtual bool resize(
const QSize& s);
135 virtual bool resize(quint32 newWidth,quint32 newHeight);
137 virtual void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option=0,QWidget *widget=0);
140 virtual bool touchEvent(QTouchEvent * event) {
return true; }
149 virtual bool tapAndHoldGesture(QTapAndHoldGesture *tapHoldEvent,QGestureEvent * baseGestureEvent);
150 virtual bool tapGesture(QTapGesture *tapEvent,QGestureEvent * baseGestureEvent);
167 QPointer<PageTabBar> m_qp_currentTabBarOwner;
168 QPointer<Page> m_qp_relatedToPage;
170 QRectF m_backgroundGeom;
171 QRectF m_backgroundShadowGeom;
173 QMap<qint32,QPointer<PixmapObject> > m_modeBackgrounds;
174 QPointer<PixmapObject> m_qp_backgroundShadow;
179 bool m_interactionsBlocked;
180 QPointer<PixmapObject> m_currentBackgroundPmo;
181 bool m_showLeftDivider;
182 bool m_showRightDivider;
183 QPointer<PixmapObject> m_leftDividerPmo;
184 QPointer<PixmapObject> m_rightDividerPmo;
186 QPointF m_leftDividerPosPntCS;
187 QPointF m_rightDividerPosPntCS;
191 QColor m_selectedColor;
192 QColor m_unselectedColor;
193 QTextLayout m_textLayoutObject;
194 QPointF m_labelPosICS;
195 QPoint m_labelPosPntCS;
196 QRect m_labelMaxGeom;
199 #if defined TARGET_DESKTOP && (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
200 QPixmap m_textPixmap;