projects
/
yandex-traffic
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Dump traffic info.
[yandex-traffic]
/
mainwidget.cpp
diff --git
a/mainwidget.cpp
b/mainwidget.cpp
index
4e04909
..
545292a
100644
(file)
--- a/
mainwidget.cpp
+++ b/
mainwidget.cpp
@@
-74,6
+74,8
@@
void MainWidget::trafficUpdated ()
if (info.valid ()) {
QString data;
bool first = true;
if (info.valid ()) {
QString data;
bool first = true;
+ Log::instance ()->add ("trafficUpdated, info valid");
+ info.dump ();
_light->setColor (info.color ());
if (_settings->check (Settings::C_ShowRank)) {
_light->setColor (info.color ());
if (_settings->check (Settings::C_ShowRank)) {
@@
-97,6
+99,7
@@
void MainWidget::trafficUpdated ()
_label->setText (data);
}
else {
_label->setText (data);
}
else {
+ Log::instance ()->add ("trafficUpdated, but info not valid");
_light->setColor (ExtendedTrafficInfo::Unknown);
_label->setText (tr ("No data"));
}
_light->setColor (ExtendedTrafficInfo::Unknown);
_label->setText (tr ("No data"));
}