diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-19 21:44:21 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-19 21:44:21 -0700 |
commit | e818f0352b4f7a036b34e7f67ba0fd45654e4d63 (patch) | |
tree | d196df57af73f0d4d1741af52459c7d79fe2d3b2 /qt-ui/maintab.cpp | |
parent | 1d102897966709bd70542f54a18fba9c8b1b2537 (diff) | |
download | subsurface-e818f0352b4f7a036b34e7f67ba0fd45654e4d63.tar.gz |
Try to add a StarWidget for visibility
It's not editable. And of course it continues to look like utter crap -
even more so now since this is left aligned and everything else is
centered.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 18f715f01..95fd9ffe3 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -90,7 +90,7 @@ void MainTab::clearInfo() ui->surfaceIntervalText->clear(); ui->maximumDepthText->clear(); ui->averageDepthText->clear(); - ui->visibilityText->clear(); + ui->visibility->setCurrentStars(0); ui->waterTemperatureText->clear(); ui->airTemperatureText->clear(); ui->airPressureText->clear(); @@ -180,6 +180,7 @@ void MainTab::updateDiveInfo(int dive) ui->airPressureText->setText(QString("%1mbar").arg(d->surface_pressure.mbar)); else ui->airPressureText->clear(); + ui->visibility->setCurrentStars(d->visibility); } else { /* make the fields read-only */ ui->location->setReadOnly(true); @@ -198,7 +199,7 @@ void MainTab::updateDiveInfo(int dive) ui->surfaceIntervalText->clear(); ui->maximumDepthText->clear(); ui->averageDepthText->clear(); - ui->visibilityText->clear(); + ui->visibility->setCurrentStars(0); ui->waterTemperatureText->clear(); ui->airTemperatureText->clear(); ui->gasUsedText->clear(); |