22 #ifndef STATUSBARTITLE_H
23 #define STATUSBARTITLE_H
26 #include <QGraphicsObject>
27 #include <QTextLayout>
43 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget);
52 void createTitlePixmap(QPixmap *pix, QRectF &rect);
53 void animValueChanged(
const QVariant& value);
55 void animateTitleTransition();
58 void slotAnimFinished();
63 QPixmap m_titleBackground;
64 QPixmap m_currentTitle, m_newTitle;
65 QRectF m_curRect, m_newRect;
67 QString m_originalText;
69 bool m_showTitleBorder;
72 bool m_forceClassicUi;
75 qreal m_newTitleOpacity;