From f07614fb2f55644a6124b0e837d2776afadee113 Mon Sep 17 00:00:00 2001 From: Amit Chaudhuri Date: Mon, 6 May 2013 08:30:40 +0100 Subject: Reformat statistics tab in MainTab tab widget Rename various labels and text into clear pairs and reflect changes into .cpp file. To avoid clashes with names on other tabs use '..All..' to emphasise that this page deals with an aggregate across the selected dives. Re-format the statistics tab. Signed-off-by: Amit Chaudhuri Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 28 ++++++------ qt-ui/maintab.ui | 125 +++++++++++++++++++++++++++++++++--------------------- 2 files changed, 91 insertions(+), 62 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index d72df965c..8d196a872 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -44,20 +44,20 @@ void MainTab::clearInfo() void MainTab::clearStats() { - ui->maxdepth_2->setText(QString()); - ui->mindepth->setText(QString()); - ui->avgdepth->setText(QString()); - ui->maxsac->setText(QString()); - ui->minsac->setText(QString()); - ui->avgsac->setText(QString()); - ui->dives->setText(QString()); - ui->maxtemp->setText(QString()); - ui->mintemp->setText(QString()); - ui->avgtemp->setText(QString()); - ui->totaltime->setText(QString()); - ui->avgtime->setText(QString()); - ui->longestdive->setText(QString()); - ui->shortestdive->setText(QString()); + ui->maximumDepthAllText->setText(QString()); + ui->minimumDepthAllText->setText(QString()); + ui->averageDepthAllText->setText(QString()); + ui->maximumSacAllText->setText(QString()); + ui->minimumSacAllText->setText(QString()); + ui->averageSacAllText->setText(QString()); + ui->divesAllText->setText(QString()); + ui->maximumTemperatureAllText->setText(QString()); + ui->minimumTemperatureAllText->setText(QString()); + ui->averageTemperatureAllText->setText(QString()); + ui->totalTimeAllText->setText(QString()); + ui->averageTimeAllText->setText(QString()); + ui->longestAllText->setText(QString()); + ui->shortestAllText->setText(QString()); } void MainTab::on_addCylinder_clicked() diff --git a/qt-ui/maintab.ui b/qt-ui/maintab.ui index 82019e6c3..5ec104638 100644 --- a/qt-ui/maintab.ui +++ b/qt-ui/maintab.ui @@ -14,7 +14,7 @@ TabWidget - 2 + 0 @@ -528,12 +528,28 @@ - - + + + Qt::Vertical + + + + 20 + 20 + + + + + + + 10 + + 15 + - + 75 @@ -541,12 +557,12 @@ - Max Depth + Max. Depth - + 75 @@ -554,12 +570,12 @@ - Min Depth + Min. Depth - + 75 @@ -567,33 +583,33 @@ - Avg Depth + Ave. Depth - + TextLabel - + TextLabel - + TextLabel - + 75 @@ -601,12 +617,12 @@ - Max SAC + Max. SAC - + 75 @@ -614,12 +630,12 @@ - Min SAC + Min. SAC - + 75 @@ -627,26 +643,26 @@ - Avg SAC + Ave. SAC - + TextLabel - + TextLabel - + TextLabel @@ -655,15 +671,28 @@ - - + + + Qt::Vertical + + + + 20 + 20 + + + + + + + 10 - - 0 + + 15 - + 75 @@ -679,7 +708,7 @@ - + 75 @@ -687,12 +716,12 @@ - Max Temp + Max. Temp. - + 75 @@ -700,12 +729,12 @@ - Min Temp + Min. Temp. - + 75 @@ -713,40 +742,40 @@ - Avg Temp + Ave. Temp. - + TextLabel - + TextLabel - + TextLabel - + TextLabel - + 75 @@ -759,7 +788,7 @@ - + 75 @@ -767,12 +796,12 @@ - Avg Time + Ave. Time - + 75 @@ -780,12 +809,12 @@ - Longest Dive + Longest - + 75 @@ -793,33 +822,33 @@ - Shortest Dive + Shortest - + TextLabel - + TextLabel - + TextLabel - + TextLabel @@ -835,7 +864,7 @@ 20 - 85 + 20 -- cgit v1.2.3-70-g09d2