aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/globe.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-09-26 18:14:09 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-09-26 18:14:09 -0300
commit098aa6343b7b806c5c23f6e55c52b998bbe0c388 (patch)
tree3f67046013bb6240546f2ca4a6f07ef1d0fd9d82 /qt-ui/globe.cpp
parent57ebed9dd0c550e689e30c7c9c2dbdcd4c133b58 (diff)
downloadsubsurface-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/globe.cpp')
-rw-r--r--qt-ui/globe.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp
index c16af93cf..87dc4275b 100644
--- a/qt-ui/globe.cpp
+++ b/qt-ui/globe.cpp
@@ -57,7 +57,11 @@ GlobeGPS::GlobeGPS(QWidget* parent) : MarbleWidget(parent), loadedDives(0)
setShowOverviewMap(false);
setShowScaleBar(true);
setShowCompass(false);
- connect(this, SIGNAL(mouseClickGeoPosition(qreal, qreal, GeoDataCoordinates::Unit)), this, SLOT(mouseClicked(qreal, qreal, GeoDataCoordinates::Unit)));
+ connect(this, SIGNAL(mouseClickGeoPosition(qreal, qreal, GeoDataCoordinates::Unit)),
+ this, SLOT(mouseClicked(qreal, qreal, GeoDataCoordinates::Unit)));
+
+ setMinimumHeight(0);
+ setMinimumWidth(0);
}
void GlobeGPS::mouseClicked(qreal lon, qreal lat, GeoDataCoordinates::Unit unit)