aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/globe.h
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-07-16 00:32:54 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-28 07:31:11 -0700
commita8af2f5548e8c2a9c0d59062faf2fdeeab5a5d65 (patch)
treeb875bd517394bda54920c9fba91491a08524c160 /desktop-widgets/globe.h
parentab7d6a73d4e1193120f5790cdf01ff6a0792a1ec (diff)
downloadsubsurface-a8af2f5548e8c2a9c0d59062faf2fdeeab5a5d65.tar.gz
globe.cpp/h: remove the dummy QLabel based widget
If NO_MARBLE is defined don't create a dummy replacement widget in the GlobeGPS class. At this point all cases of NO_MARBLE are covered by the MapWidget solution. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'desktop-widgets/globe.h')
-rw-r--r--desktop-widgets/globe.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/desktop-widgets/globe.h b/desktop-widgets/globe.h
index 39696fe23..d53c59721 100644
--- a/desktop-widgets/globe.h
+++ b/desktop-widgets/globe.h
@@ -57,27 +57,6 @@ slots:
void centerOnIndex(const QModelIndex& idx);
};
-#else // NO_MARBLE
-/* Dummy widget for when we don't have MarbleWidget */
-#include <QLabel>
-
-class GlobeGPS : public QLabel {
- Q_OBJECT
-public:
- GlobeGPS(QWidget *parent = 0);
- static GlobeGPS *instance();
- void reload();
- void repopulateLabels();
- void centerOnDiveSite(uint32_t uuid);
- void centerOnIndex(const QModelIndex& idx);
- void centerOnCurrentDive();
- bool eventFilter(QObject *, QEvent *);
-public
-slots:
- void prepareForGetDiveCoordinates();
- void endGetDiveCoordinates();
-};
-
#endif // NO_MARBLE
extern "C" double getDistance(int lat1, int lon1, int lat2, int lon2);