X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Fresultdialog.cpp;h=e53db80fe8bf1fe6c086454fc1ecb6cf51cf2b39;hp=3ab0591da3d1d2037d467ecd850d4327bf0f7829;hb=6bc1089e0f7de459eca37fdec9c61b08de94a6de;hpb=bcc66005bf90441851ae6fc3454be8bd6a0ad0f5 diff --git a/Client/resultdialog.cpp b/Client/resultdialog.cpp index 3ab0591..e53db80 100644 --- a/Client/resultdialog.cpp +++ b/Client/resultdialog.cpp @@ -2,6 +2,7 @@ * CarMainWindow main class * * @author Janne Änäkkälä + * @author Toni Jussila * @copyright (c) 2010 Speed Freak team * @license http://opensource.org/licenses/gpl-license.php GNU Public License */ @@ -76,6 +77,9 @@ ResultDialog::ResultDialog(QWidget *parent) : { ui->pushButtonSend->setEnabled(false); } + + //Clear info label + ui->labelInfoToUser->setText(""); } /** @@ -315,11 +319,12 @@ void ResultDialog::on_pushButtonNew_clicked() /** * 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()]); + //emit sendresult(); + emit sendresult(timeArray[this->getTargetChoice()]); } double ResultDialog::getResult() @@ -748,3 +753,8 @@ int ResultDialog::getTargetChoice() } return targetChoice; } + +void ResultDialog::setLabelInfoToUser(QString infoText) +{ + this->ui->labelInfoToUser->setText(infoText); +}