7 class THBlackBar : public QWidget {
12 THBlackBar (QWidget *parent = 0);
16 QAction *addAction (QAction *action);
17 QAction *addAction (const QString& text);
18 void setCheckedAction(int index);
20 QSize minimumSizeHint (void) const;
23 void paintEvent (QPaintEvent *event);
25 void mouseMoveEvent (QMouseEvent *event);
26 void mousePressEvent (QMouseEvent *event);
27 void leaveEvent(QEvent *event);
30 void drawUnselectedButton ( QPainter *painter,
32 const QAction *action);
33 void drawSelectedButton ( QPainter *painter,
35 const QAction *action);
36 void drawButton ( QPainter *painter,
38 const QAction *action);
39 void drawButton ( QPainter *painter,
41 const QLinearGradient& gradient,
43 const QAction *action);
45 QAction *hoveredAction (const QPoint& pos) const;
46 int calculateButtonWidth (void) const;
53 #endif /* !_THBLACKBAR_H_ */