Add conditional so globe.cpp builds with older versions of Marble
In commit 7f3b487c77c7 ("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
@ -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…
x
Reference in New Issue
Block a user