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()
void accelerationstart::on_categorComboBox_currentIndexChanged( int index )
{
stopMeasureSpeed = 0;
- if( index == 1 )
+ if( index == 1 ) {
stopMeasureSpeed = 20;
- else if( index == 2 )
+ measureCategory = "acceleration-0-20";
+ }
+ else if( index == 2 ) {
stopMeasureSpeed = 40;
- else if( index == 3 )
+ measureCategory = "acceleration-0-40";
+ }
+ else if( index == 3 ) {
stopMeasureSpeed = 100;
+ measureCategory = "acceleration-0-100";
+ }
}
+
+
+QString accelerationstart::getMeasureCategory()
+{
+ return measureCategory;
+}
+