X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=Client%2Fresultdialog.cpp;h=659f037fd8fdcdb9d235c9a9376de3febe1aa2a1;hb=fabb862ed27bd473f0bf9f0217dd30da80ad217c;hp=a01a168fdc97580627bcefcee8b1f174f2661e96;hpb=4dad132ee89fdd68067a3cab27ecc095f0f863dc;p=speedfreak diff --git a/Client/resultdialog.cpp b/Client/resultdialog.cpp index a01a168..659f037 100644 --- a/Client/resultdialog.cpp +++ b/Client/resultdialog.cpp @@ -278,19 +278,19 @@ void ResultDialog::setTimesIntoLabels() */ void ResultDialog::setTimeAxelLength(int pChoice) { - if (timeArray[pChoice] <= 5) + if (timeArray[pChoice] <= 5.0) { timeAxelLength = 5; } - else if (timeArray[pChoice] <= 10) + else if (timeArray[pChoice] <= 10.0 && timeArray[pChoice] > 5.0) { timeAxelLength = 10; } - else if (timeArray[pChoice] <= 15) + else if (timeArray[pChoice] <= 16.0 && timeArray[pChoice] > 10.0) { - timeAxelLength = 15; + timeAxelLength = 16; } else @@ -400,12 +400,12 @@ void ResultDialog::setValue(int pSpeed, double pTime) this->diagramGapHorizontal = DIAGRAMGAP5S; } - else if (pTime <= 10.0) + else if (pTime <= 10.0 && pTime > 5.0) { this->diagramGapHorizontal = DIAGRAMGAP10S; } - else if (pTime <= 16.0) + else if (pTime <= 16.0 && pTime > 10.0) { this->diagramGapHorizontal = DIAGRAMGAP16S; } @@ -753,4 +753,3 @@ void ResultDialog::setLabelInfoToUser(QString infoText) { this->ui->labelInfoToUser->setText(infoText); } -