summaryrefslogtreecommitdiffstats
path: root/qt-ui/globe.h
diff options
context:
space:
mode:
authorGravatar Henrik Brautaset Aronsen <subsurface@henrik.synth.no>2013-05-24 21:15:49 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-25 08:17:14 -0700
commit5d05bb120716707ae0438f5a0395759bbf740fe1 (patch)
tree5e3af3656ffa7bf85e7b1a7d4787c10d63eae67f /qt-ui/globe.h
parent884e1c337981ba98a3a29c398cf1ab847009e954 (diff)
downloadsubsurface-5d05bb120716707ae0438f5a0395759bbf740fe1.tar.gz
Avoid marble widget resize when switching dives
The "no dive location" message box was displayed above the marble widget, which made the layout splitter move horizontally. Made the message box as an overlay on the map instead. Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/globe.h')
-rw-r--r--qt-ui/globe.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/qt-ui/globe.h b/qt-ui/globe.h
index 1e0960b76..0d42ab90a 100644
--- a/qt-ui/globe.h
+++ b/qt-ui/globe.h
@@ -18,6 +18,7 @@ public:
GlobeGPS(QWidget *parent);
void reload();
void centerOn(struct dive* dive);
+ void resizeEvent(QResizeEvent *event);
protected:
virtual void mousePressEvent(QMouseEvent* event);
@@ -30,8 +31,6 @@ private:
public Q_SLOTS:
void changeDiveGeoPosition(qreal lon,qreal lat,GeoDataCoordinates::Unit);
- void setMessageWidget(KMessageWidget* globeMessage);
-
};
#endif