projects
/
yandex-traffic
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Check for device state on update.
[yandex-traffic]
/
mainwidget.hpp
diff --git
a/mainwidget.hpp
b/mainwidget.hpp
index
59aa5f2
..
00df461
100644
(file)
--- a/
mainwidget.hpp
+++ b/
mainwidget.hpp
@@
-13,20
+13,31
@@
class MainWidget : public QWidget
{
Q_OBJECT
private:
{
Q_OBJECT
private:
- Traffic _traffic;
- RegionsTable _regions;
- Settings _settings;
+ Traffic* _traffic;
+ RegionsTable* _regions;
+ Settings* _settings;
// Widgets
// Widgets
- TrafficLight *_light;
- QLabel *_label;
+ TrafficLight* _light;
+ QLabel* _label;
+
+ // Other stuff
+ QTimer *_timer;
public:
MainWidget ();
public:
MainWidget ();
+ virtual ~MainWidget ();
+
+public slots:
+ void settingsDialog ();
+ void updateData ();
protected:
void paintEvent (QPaintEvent *event);
protected:
void paintEvent (QPaintEvent *event);
- void timerEvent (QTimerEvent *event);
+ void mousePressEvent (QMouseEvent *event);
+
+ void updateSize ();
+ void applySettings ();
protected slots:
void trafficUpdated ();
protected slots:
void trafficUpdated ();