diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-03-26 10:04:42 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-03-26 10:05:37 (GMT) |
commit | c48326d14d4fe8de5e11d977a30c04fd8a9aeb27 (patch) | |
tree | 3e3e4b4796bcbefcb86b73a450781a447b62f4f3 /examples/xmlpatterns | |
parent | 3b289ff76933c08ef51eefbd07839794e26ff2fa (diff) | |
download | Qt-c48326d14d4fe8de5e11d977a30c04fd8a9aeb27.zip Qt-c48326d14d4fe8de5e11d977a30c04fd8a9aeb27.tar.gz Qt-c48326d14d4fe8de5e11d977a30c04fd8a9aeb27.tar.bz2 |
Make the traffic info example not hit the server every minute.
The most frequent service in Oslo is every 5 minutes, so this should
be a reasonable update interval. Let's hope that Trafikanten will stop
blocking us in their firewall now.
Reviewed-by: Trust Me
Diffstat (limited to 'examples/xmlpatterns')
-rw-r--r-- | examples/xmlpatterns/trafficinfo/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/xmlpatterns/trafficinfo/mainwindow.cpp b/examples/xmlpatterns/trafficinfo/mainwindow.cpp index c4ca731..1f754d5 100644 --- a/examples/xmlpatterns/trafficinfo/mainwindow.cpp +++ b/examples/xmlpatterns/trafficinfo/mainwindow.cpp @@ -71,7 +71,7 @@ MainWindow::MainWindow() QTimer *timer = new QTimer(this); connect(timer, SIGNAL(timeout()), this, SLOT(updateTimeInformation())); - timer->start(1000*60); + timer->start(1000*60*5); const QSettings settings("Qt Software", "trafficinfo"); m_station = StationInformation(settings.value("stationId", "03012130").toString(), |