mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
mainwindow: create an instance of MapWidget for NO_MARBLE
This is an attempt for a smooth transition between Marble and Qt Location map integration. If NO_MARBLE is defined an instance of MapWidget (Qt Location) is created, else an instance of the Marble widget would be used. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
0f0a953727
commit
b0b5f701fc
1 changed files with 3 additions and 1 deletions
|
@ -63,6 +63,8 @@
|
||||||
#include "plugins/facebook/facebookconnectwidget.h"
|
#include "plugins/facebook/facebookconnectwidget.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "desktop-widgets/mapwidget.h"
|
||||||
|
|
||||||
QProgressDialog *progressDialog = NULL;
|
QProgressDialog *progressDialog = NULL;
|
||||||
bool progressDialogCanceled = false;
|
bool progressDialogCanceled = false;
|
||||||
|
|
||||||
|
@ -106,7 +108,7 @@ MainWindow::MainWindow() : QMainWindow(),
|
||||||
#ifndef NO_MARBLE
|
#ifndef NO_MARBLE
|
||||||
GlobeGPS *mapWidget = GlobeGPS::instance();
|
GlobeGPS *mapWidget = GlobeGPS::instance();
|
||||||
#else
|
#else
|
||||||
QWidget *mapWidget = NULL;
|
MapWidget *mapWidget = MapWidget::instance();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
PlannerSettingsWidget *plannerSettings = new PlannerSettingsWidget();
|
PlannerSettingsWidget *plannerSettings = new PlannerSettingsWidget();
|
||||||
|
|
Loading…
Reference in a new issue