mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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>
This commit is contained in:
parent
1d10289796
commit
e818f0352b
2 changed files with 4 additions and 7 deletions
|
@ -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();
|
||||
|
|
|
@ -404,11 +404,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="3" column="2">
|
||||
<widget class="QLabel" name="visibilityText">
|
||||
<property name="text">
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="StarWidget" name="visibility" native="true"/>
|
||||
</item>
|
||||
<item row="2" column="2">
|
||||
<widget class="QLabel" name="visibilityLabel">
|
||||
|
|
Loading…
Add table
Reference in a new issue