Bugfix: top results unit km/h -> s and routedialog max speed
authorToni Jussila <toni.jussila@fudeco.com>
Tue, 20 Apr 2010 08:05:34 +0000 (11:05 +0300)
committerToni Jussila <toni.jussila@fudeco.com>
Tue, 20 Apr 2010 08:05:34 +0000 (11:05 +0300)
Client/routedialog.cpp
Client/routedialog.ui
Client/routesavedialog.cpp
Client/routesavedialog.ui
Client/xmlreader.cpp

index 6b5e468..0fc2dcf 100644 (file)
@@ -363,7 +363,8 @@ void RouteDialog::paintEvent(QPaintEvent *)
         painter.drawEllipse( x1Screen-5, y1Screen-5, 10, 10);
 
         QString jono;
-        jono = QString("%1 km/h").arg(maxv);
+        //jono = QString("%1 km/h").arg(maxv);
+        jono.sprintf("%.1f km/h", maxv);
         ui->speedValueLabel->setText(jono);
     }
 }
index 563cd7c..e6cafbe 100644 (file)
@@ -7,7 +7,7 @@
     <x>0</x>
     <y>0</y>
     <width>800</width>
-    <height>300</height>
+    <height>380</height>
    </rect>
   </property>
   <property name="windowTitle">
     </size>
    </property>
   </widget>
-  <widget class="QWidget" name="">
+  <widget class="QWidget" name="layoutWidget">
    <property name="geometry">
     <rect>
-     <x>660</x>
+     <x>650</x>
      <y>210</y>
-     <width>121</width>
+     <width>141</width>
      <height>81</height>
     </rect>
    </property>
index 506c1e5..253784e 100644 (file)
@@ -51,6 +51,9 @@ RouteSaveDialog::RouteSaveDialog(QWidget *parent) :
     //GPS speed label
     ui->labelGpsSpeed->setVisible(0);
 
+    //User info label
+    ui->labelUserInfo->setText("");
+
     //GPS
     location = new Maemo5Location(this);
     gpsData = new GPSData(location);
index 5edc2ff..1ae73c6 100644 (file)
     <pixmap resource="graphics.qrc">:/new/prefix1/Graphics/sf_2.png</pixmap>
    </property>
   </widget>
-  <widget class="QLabel" name="label_2">
+  <widget class="QLabel" name="labelUserInfo">
    <property name="geometry">
     <rect>
      <x>200</x>
index 2140ca7..eeed22e 100644 (file)
@@ -72,7 +72,8 @@ void XmlReader::xmlReadTop10Results(QNetworkReply *device)
                 user = attr.value("username").toString();
                 position = attr.value("position").toString();
                 date = attr.value("date").toString();
-                unit = attr.value("unit").toString();
+                //unit = attr.value("unit").toString();
+                unit = "s";
                 value = attr.value("value").toString();
 
                 myCategoryList->top10List.append(position + "\t" +