From 8577410fcd94f3c3109b8b3cf4932a9e0d11fc80 Mon Sep 17 00:00:00 2001 From: Amit Chaudhuri Date: Fri, 3 May 2013 08:19:00 +0100 Subject: Reformat dive info page in tab widget Clean up the formatting. Distinguish between headings and value labels. Tidy up text appearance (remove trailing ':') Signed-off-by: Amit Chaudhuri Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 26 +++---- qt-ui/maintab.ui | 200 ++++++++++++++++++++++++++++++++---------------------- 2 files changed, 132 insertions(+), 94 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 2467dd0d7..d72df965c 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -27,19 +27,19 @@ void MainTab::clearEquipment() void MainTab::clearInfo() { - ui->sac->setText(QString()); - ui->otu->setText(QString()); - ui->oxygenhelium->setText(QString()); - ui->gasused->setText(QString()); - ui->date->setText(QString()); - ui->divetime->setText(QString()); - ui->surfinterval->setText(QString()); - ui->maxdepth->setText(QString()); - ui->avgdepth->setText(QString()); - ui->visibility->setText(QString()); - ui->watertemperature->setText(QString()); - ui->airtemperature->setText(QString()); - ui->airpress->setText(QString()); + ui->sacText->setText(QString()); + ui->otuText->setText(QString()); + ui->oxygenHeliumText->setText(QString()); + ui->gasUsedText->setText(QString()); + ui->dateText->setText(QString()); + ui->diveTimeText->setText(QString()); + ui->surfaceIntervalText->setText(QString()); + ui->maximumDepthText->setText(QString()); + ui->averageDepthText->setText(QString()); + ui->visibilityText->setText(QString()); + ui->waterTemperatureText->setText(QString()); + ui->airTemperatureText->setText(QString()); + ui->airPressureText->setText(QString()); } void MainTab::clearStats() diff --git a/qt-ui/maintab.ui b/qt-ui/maintab.ui index a99b0aed7..82019e6c3 100644 --- a/qt-ui/maintab.ui +++ b/qt-ui/maintab.ui @@ -7,14 +7,14 @@ 0 0 400 - 320 + 325 TabWidget - 0 + 2 @@ -199,9 +199,31 @@ - + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + 10 + + + 15 + + + 10 + - + 75 @@ -209,12 +231,12 @@ - SAC: + SAC - + 75 @@ -222,12 +244,12 @@ - OTU: + OTU - + 75 @@ -235,12 +257,12 @@ - 0²/He: + 0²/He - + 75 @@ -248,33 +270,33 @@ - Gas Used: + Gas Used - + TextLabel - + TextLabel - + TextLabel - + TextLabel @@ -283,38 +305,28 @@ - - + + + Qt::Vertical + + + + 20 + 40 + + + + + + + 10 - - - - - 75 - true - - - - Dive Time: - - - - - - - - 75 - true - - - - Surf Interv: - - - - - + + 15 + + + 75 @@ -322,26 +334,26 @@ - Avg Depth: + Date - - + + TextLabel - + TextLabel - - + + 75 @@ -349,12 +361,12 @@ - Air Press: + Visibility - - + + 75 @@ -362,26 +374,33 @@ - Max Depth: + Water Temp. - - + + TextLabel - + TextLabel - - + + + + TextLabel + + + + + 75 @@ -389,19 +408,25 @@ - Air Temp: + Air Pressure - - + + + + + 75 + true + + - TextLabel + Ave. Depth - - + + 75 @@ -409,12 +434,12 @@ - Visibility: + Max. Depth - - + + 75 @@ -422,40 +447,53 @@ - Water Temp: + Air Temp. - + TextLabel - - + + TextLabel - - + + TextLabel - - + + TextLabel - - + + + + + 75 + true + + + + Interval + + + + + 75 @@ -463,7 +501,7 @@ - Date: + Dive Time @@ -477,7 +515,7 @@ 20 - 112 + 40 -- cgit v1.2.3-70-g09d2