projects
/
yandex-traffic
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b4db48
)
Display of regions in label
author
Max Lapan
<max.lapan@gmail.com>
Sun, 7 Mar 2010 18:04:36 +0000
(21:04 +0300)
committer
Max Lapan
<max.lapan@gmail.com>
Sun, 7 Mar 2010 18:04:36 +0000
(21:04 +0300)
mainwidget.hpp
patch
|
blob
|
history
diff --git
a/mainwidget.hpp
b/mainwidget.hpp
index
5298de5
..
3469b8b
100644
(file)
--- a/
mainwidget.hpp
+++ b/
mainwidget.hpp
@@
-3,15
+3,25
@@
#include <QtGui>
+#include <settings.hpp>
+#include <regions.hpp>
+
+
class MainWidget : public QLabel
{
Q_OBJECT
+private:
+ RegionsTable _regions;
+ Settings _settings;
+
public:
MainWidget ()
- : QLabel (tr ("Hello, World"))
+ : QLabel ()
{
setAlignment(Qt::AlignCenter);
setAttribute(Qt::WA_TranslucentBackground);
+
+ setText (_settings.regions ().join (", "));
}
QSize sizeHint() const