New background and button picture.
[speedfreak] / Client / accelerationstart.cpp
index 2592009..11dbf85 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Acceleration start dialog
+ *
+ * @author      Jukka Kurttila <jukka.kurttila@fudeco.com>
+ * @copyright   (c) 2010 Speed Freak team
+ * @license     http://opensource.org/licenses/gpl-license.php GNU Public License
+ */
 #include "accelerationstart.h"
 #include "ui_accelerationstartdialog.h"
 #include <QMessageBox>
@@ -16,6 +23,12 @@ accelerationstart::accelerationstart(QWidget *parent) :
     ui->categorComboBox->addItem("0 - 20 km/h",20);
     ui->categorComboBox->addItem("0 - 40 km/h");
     ui->categorComboBox->addItem("0 - 100 km/h");
+
+    //Button settings
+    ui->buttonCalib->setAutoFillBackground(true);
+    ui->buttonCalib->setStyleSheet("background-color: rgb(0, 0, 0); color: rgb(255, 255, 255)");
+    ui->buttonStart->setAutoFillBackground(true);
+    ui->buttonStart->setStyleSheet("background-color: rgb(0, 0, 0); color: rgb(255, 255, 255)");
 }
 
 accelerationstart::~accelerationstart()
@@ -67,8 +80,8 @@ void accelerationstart::on_categorComboBox_currentIndexChanged( int index )
 {
     stopMeasureSpeed = 0;
     if( index == 1 ) {
-        stopMeasureSpeed = 10;
-        measureCategory = "acceleration-0-10";
+        stopMeasureSpeed = 20;
+        measureCategory = "acceleration-0-20";
     }
     else if( index == 2 ) {
         stopMeasureSpeed = 40;