diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-09-26 18:14:09 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-09-26 18:14:09 -0300 |
commit | 098aa6343b7b806c5c23f6e55c52b998bbe0c388 (patch) | |
tree | 3f67046013bb6240546f2ca4a6f07ef1d0fd9d82 /qt-ui/maintab.cpp | |
parent | 57ebed9dd0c550e689e30c7c9c2dbdcd4c133b58 (diff) | |
download | subsurface-098aa6343b7b806c5c23f6e55c52b998bbe0c388.tar.gz |
Fixed the display of Subsurface in Smaller Screens
This patch fixes the display of subsurface in smaller
screens by creating ScrollArea containers that are
now englobbing each of the Tab-pages and the Planner
Widget. Some of those widgets were pretty big by the
amount of things on it and it was too big for small
( 14" and 15" ) screens.
This seems to fix it, and looks good both on Gtk+ and
Oxygen styles.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 43529ec3c..98247566a 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -93,6 +93,9 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent), ui->divemaster->setCompleter(completers.divemaster); ui->location->setCompleter(completers.location); ui->suit->setCompleter(completers.suit); + + setMinimumHeight(0); + setMinimumWidth(0); } void MainTab::addDiveStarted() @@ -315,7 +318,7 @@ void MainTab::updateDiveInfo(int dive) ui->airPressureText->setText(QString("%1mbar").arg(d->surface_pressure.mbar)); else ui->airPressureText->clear(); - ui->depthLimits->setMaximum(get_depth_string(stats_selection.max_depth, TRUE)); + (get_depth_string(stats_selection.max_depth, TRUE)); ui->depthLimits->setMinimum(get_depth_string(stats_selection.min_depth, TRUE)); ui->depthLimits->setAverage(get_depth_string(stats_selection.avg_depth, TRUE)); ui->sacLimits->setMaximum(get_volume_string(stats_selection.max_sac, TRUE).append(tr("/min"))); |