diff options
author | Boris Barbulovski <bbarbulovski@gmail.com> | 2014-02-09 19:41:47 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-09 14:42:07 -0800 |
commit | e88c198b93f5b57ef4dbd348ef2975d2c866785e (patch) | |
tree | 050d8a6f5132a90628538c5fae043a101b0703c3 /qt-ui/globe.cpp | |
parent | 18207c9189f34668a8bf9241da17ba57591f61a4 (diff) | |
download | subsurface-e88c198b93f5b57ef4dbd348ef2975d2c866785e.tar.gz |
globe.cpp improvements
* Add missing variable members to the initializer lists.
Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/globe.cpp')
-rw-r--r-- | qt-ui/globe.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp index 2aed8d4a1..b3dcc0485 100644 --- a/qt-ui/globe.cpp +++ b/qt-ui/globe.cpp @@ -24,7 +24,12 @@ #include <QMouseEvent> #include <QMessageBox> -GlobeGPS::GlobeGPS(QWidget* parent) : MarbleWidget(parent), loadedDives(0), editingDiveLocation(false) +GlobeGPS::GlobeGPS(QWidget* parent) : MarbleWidget(parent), + loadedDives(0), + messageWidget(new KMessageWidget(this)), + fixZoomTimer(new QTimer(this)), + currentZoomLevel(0), + editingDiveLocation(false) { // check if Google Sat Maps are installed // if not, check if they are in a known location @@ -42,7 +47,6 @@ GlobeGPS::GlobeGPS(QWidget* parent) : MarbleWidget(parent), loadedDives(0), edit MarbleDirs::setMarbleDataPath(subsurfaceDataPath); } } - messageWidget = new KMessageWidget(this); messageWidget->setCloseButtonVisible(false); messageWidget->setHidden(true); @@ -68,7 +72,6 @@ GlobeGPS::GlobeGPS(QWidget* parent) : MarbleWidget(parent), loadedDives(0), edit setMinimumHeight(0); setMinimumWidth(0); - fixZoomTimer = new QTimer(this); connect(fixZoomTimer, SIGNAL(timeout()), this, SLOT(fixZoom())); fixZoomTimer->setSingleShot(true); installEventFilter(this); |