More Symbian fixes.
[dorian] / widgets / toolbuttonbox.h
1 #ifndef TOOLBUTTONBOX_H
2 #define TOOLBUTTONBOX_H
3
4 #include <QFrame>
5
6 class QString;
7 class QButtonGroup;
8
9 class ToolButtonBox: public QFrame
10 {
11     Q_OBJECT
12
13 public:
14     explicit ToolButtonBox(QWidget *parent = 0);
15     void addButton(int id, const QString &title, const QString &icon = "");
16     void addStretch();
17     void toggle(int id);
18     int checkedId() const;
19
20 signals:
21     void buttonClicked(int id);
22
23 public slots:
24
25 protected:
26     QButtonGroup *group;
27 };
28
29 #endif // TOOLBUTTONBOX_H