mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
Add conditional so globe.cpp builds with older versions of Marble
In commit 7f3b487c77
("Restore the previous globe zoom level after
showing dive without GPS") I was a bit too aggressive in replacing a
deprecated API function - people still need to be able to compile against
Marble versions older than 4.10.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
088017f67c
commit
8f657ff775
1 changed files with 6 additions and 0 deletions
|
@ -26,6 +26,12 @@
|
|||
#include <QMouseEvent>
|
||||
#include <QMessageBox>
|
||||
|
||||
// as of Marble 4.10 (which has MARBLE_VERSION 0x001000) zoomView is
|
||||
// deprecated and has been replaced by setZoom with the same function signature
|
||||
#if MARBLE_VERSION < 0x001000
|
||||
#define setZoom zoomView
|
||||
#endif
|
||||
|
||||
GlobeGPS::GlobeGPS(QWidget *parent) : MarbleWidget(parent),
|
||||
loadedDives(0),
|
||||
messageWidget(new KMessageWidget(this)),
|
||||
|
|
Loading…
Reference in a new issue