X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=mainwidget.hpp;h=0fb63a21854c5eaccbe8bff6547e6825e2d48d52;hb=2af109727c2bbd289adc872dfc52b92a111a1e37;hp=4e29b66c44d8e1cf817b13a2e619b8ae724bd7d3;hpb=217cea51bd3b77d651d485b18869355e2a91a42f;p=yandex-traffic diff --git a/mainwidget.hpp b/mainwidget.hpp index 4e29b66..0fb63a2 100644 --- a/mainwidget.hpp +++ b/mainwidget.hpp @@ -3,6 +3,7 @@ #include +#include "traffic.hpp" #include "settings.hpp" #include "regions.hpp" #include "light.hpp" @@ -12,6 +13,7 @@ class MainWidget : public QWidget { Q_OBJECT private: + Traffic _traffic; RegionsTable _regions; Settings _settings; @@ -24,16 +26,11 @@ public: QSize sizeHint () const; protected: - void paintEvent(QPaintEvent *event) - { - QPainter p(this); - p.setBrush(QColor(0, 0, 0, 128)); - p.setPen(Qt::NoPen); - p.drawRoundedRect(rect(), 10, 10); - p.end(); - - QWidget::paintEvent(event); - } + void paintEvent (QPaintEvent *event); + void timerEvent (QTimerEvent *event); + +protected slots: + void trafficUpdated (); }; #endif /* __MAINWIDGET_H__ */