aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/globe.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-17 21:58:49 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-17 21:58:49 -0300
commit86021b24d98c385b10ccc2fefab5cf22f3a03b54 (patch)
tree39a603640b2882cec9040c59f1a51bfe8e88bae6 /qt-ui/globe.h
parent56dbb7c2ff697a393f5051e2b5363bd4c0f2bb6e (diff)
downloadsubsurface-86021b24d98c385b10ccc2fefab5cf22f3a03b54.tar.gz
Borrowed the KMessageWidget code to better show passive information.
Borrowed the code from KMessageWidget from Aurelian Gateau, Kdelibs, to better show passive information and notifications. instead of a popup blowing in the user's face, a nice, animated and well designed widget will gracefully fade-in, show the notes, and fade out when not needed anymore. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/globe.h')
-rw-r--r--qt-ui/globe.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/globe.h b/qt-ui/globe.h
index 5f207a502..650d55716 100644
--- a/qt-ui/globe.h
+++ b/qt-ui/globe.h
@@ -6,6 +6,7 @@
#include <QHash>
+class KMessageWidget;
using namespace Marble;
struct dive;
@@ -25,9 +26,11 @@ private:
GeoDataDocument *loadedDives;
QStringList diveLocations;
struct dive* editingDiveCoords;
+ KMessageWidget* messageWidget;
public Q_SLOTS:
void changeDiveGeoPosition(qreal lon,qreal lat,GeoDataCoordinates::Unit);
+ void setMessageWidget(KMessageWidget* globeMessage);
};