* CarMainWindow main class
*
* @author Janne Änäkkälä <janne.anakkala@fudeco.com>
+ * @author Toni Jussila <toni.jussila@fudeco.com>
* @copyright (c) 2010 Speed Freak team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/
{
ui->pushButtonSend->setEnabled(false);
}
+
+ //Clear info label
+ ui->labelInfoToUser->setText("");
}
/**
/**
* This slot function emits sendresult signal for sending results to server when
* send results -button has been clicked.
+ * Emit accrealtimedialog sendresult.
*/
void ResultDialog::on_pushButtonSend_clicked()
{
+ //emit sendresult();
emit sendresult(timeArray[this->getTargetChoice()]);
}
+double ResultDialog::getResult()
+{
+ return timeArray[this->getTargetChoice()];
+}
+
/**
* This public function sets diagram's stem gap
* @param pValue is the speed value which determines diagram gap's value
}
return targetChoice;
}
+
+void ResultDialog::setLabelInfoToUser(QString infoText)
+{
+ this->ui->labelInfoToUser->setText(infoText);
+}