Fix building with NO_MARBLE issue

We can't build with -DNO_MARBLE after some previous commit broke
globe.cpp

- centerOnCurrentDive() is still existing in the code while removed from
header in 6b81fb49d0.

- Some referenced to MainWindow::instance()->globe() even if we are
building with no marble.

- include stdint.h

Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Gehad elrobey 2015-06-09 10:19:52 +02:00 committed by Dirk Hohndel
parent d9801b67b4
commit d88da53586
3 changed files with 8 additions and 1 deletions

View file

@ -1,8 +1,9 @@
#ifndef GLOBE_H
#define GLOBE_H
#ifndef NO_MARBLE
#include <stdint.h>
#ifndef NO_MARBLE
#include <marble/MarbleWidget.h>
#include <marble/GeoDataCoordinates.h>
@ -64,6 +65,7 @@ public:
void reload();
void repopulateLabels();
void centerOnDiveSite(uint32_t uuid);
void centerOnCurrentDive();
bool eventFilter(QObject *, QEvent *);
public
slots: