qtmobility/examples/weatherinfo/weatherinfo.cpp
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 5 453da2cfceef
--- a/qtmobility/examples/weatherinfo/weatherinfo.cpp	Fri Apr 16 15:51:22 2010 +0300
+++ b/qtmobility/examples/weatherinfo/weatherinfo.cpp	Mon May 03 13:18:40 2010 +0300
@@ -159,8 +159,8 @@
         const bool canStartIAP = (manager.capabilities()
                                   & QNetworkConfigurationManager::CanStartAndStopInterfaces);
         // Is there default access point, use it
-        QNetworkConfiguration cfg = manager.defaultConfiguration();
-        if (!cfg.isValid() || (!canStartIAP && cfg.state() != QNetworkConfiguration::Active)) {
+        QTM_PREPEND_NAMESPACE(QNetworkConfiguration) cfg = manager.defaultConfiguration();
+        if (!cfg.isValid() || (!canStartIAP && cfg.state() != QTM_PREPEND_NAMESPACE(QNetworkConfiguration)::Active)) {
             QMessageBox::information(this, tr("Weather Info"), tr(
                                          "Available Access Points not found."));
             return;
@@ -261,7 +261,6 @@
         QUrl url = networkReply->url();
         if (!networkReply->error()) {
             QString data = QString::fromUtf8(networkReply->readAll());
-            qDebug() << data;
             if (data.contains("<LocalityName>", Qt::CaseInsensitive)) {
                 requestWeatherOfTown(data);
             } else {
@@ -299,6 +298,8 @@
 
     void setupScene() {
 
+        m_scene.setBackgroundBrush(QBrush(palette().color(QPalette::Base)));
+
         QColor textColor = palette().color(QPalette::WindowText);
         QFont textFont = font();
         textFont.setBold(true);