Added download throbber to station list view
authorLuciano Montanaro <mikelima@gmail.com>
Mon, 16 May 2011 20:55:37 +0000 (22:55 +0200)
committerLuciano Montanaro <mikelima@zaphod>
Mon, 16 May 2011 20:55:37 +0000 (22:55 +0200)
application/app.cpp

index a4a084b..a4f8a67 100644 (file)
@@ -78,6 +78,7 @@ void App::downloadFinished(void)
     stationListView->hide();
     stationQueryReply->deleteLater();
     stationQueryReply = 0;
+    stationListView->setAttribute(Qt::WA_Maemo5ShowProgressIndicator, false);
 }
 
 void App::queryStation(const QString &station)
@@ -89,6 +90,7 @@ void App::queryStation(const QString &station)
     stationQueryReply = accessManager->post(request, query);
     connect(stationQueryReply, SIGNAL(finished()),
             this, SLOT(downloadFinished()));
+    stationListView->setAttribute(Qt::WA_Maemo5ShowProgressIndicator, true);
 }
 
 void App::showSettingsDialog()