Fixed background transparency bug.
[irwi] / src / mainwidget.h
1 #ifndef MAINWIDGET_H
2 #define MAINWIDGET_H
3
4 #include <QWidget>
5
6 #include "irctrl.h"
7
8 class QGridLayout;
9 class QToolButton;
10 class QSettings;
11
12 class MainWidget : public QWidget
13 {
14     Q_OBJECT
15 public:
16     MainWidget (QWidget *parent = NULL);
17     ~MainWidget();
18
19 public slots:
20     void showSettingsDialog();
21
22 protected:
23     void paintEvent(QPaintEvent *event);
24  
25 private:
26     static const int BUTTON_COUNT = 6;
27     QGridLayout *layout;
28     QToolButton *buttons[BUTTON_COUNT];
29     IrCtrl irCtrl;
30     QSettings *settings;
31 };
32
33 #endif
34