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);
29 void drawUnselectedButton ( QPainter *painter,
31 const QAction *action);
32 void drawSelectedButton ( QPainter *painter,
34 const QAction *action);
35 void drawButton ( QPainter *painter,
37 const QAction *action);
38 void drawButton ( QPainter *painter,
40 const QLinearGradient& gradient,
42 const QAction *action);
44 QAction *hoveredAction (const QPoint& pos) const;
45 int calculateButtonWidth (void) const;
52 #endif /* !_THBLACKBAR_H_ */