Application settings class with reasonable defaults.
[yandex-traffic] / mainwidget.hpp
1 #ifndef __MAINWIDGET_H__
2 #define __MAINWIDGET_H__
3
4 #include <QtGui>
5
6 class MainWidget : public QLabel
7 {
8     Q_OBJECT
9 public:
10     MainWidget ()
11         : QLabel (tr ("Hello, World"))
12     {
13         setAlignment(Qt::AlignCenter);
14         setAttribute(Qt::WA_TranslucentBackground);
15     }
16
17     QSize sizeHint() const
18     {
19         return 2 * QLabel::sizeHint();
20     }
21 };
22
23 #endif /* __MAINWIDGET_H__ */