diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-09-02 14:37:25 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-09-04 07:46:35 -0700 |
commit | 4bb180b1178d293de4c55099a23d70d385e517d9 (patch) | |
tree | edaaf92a914f94e093443e3bfef38b135d932b3d /desktop-widgets/mainwindow.cpp | |
parent | a7d8e0d18748fdf72f5d43cceec945c6add74294 (diff) | |
download | subsurface-4bb180b1178d293de4c55099a23d70d385e517d9.tar.gz |
remove Marble from the source tree
In desktop-widgets, remove globe.cpp, globe.h and also remove
the NO_MARBLE macro usage.
At this point the MapWidget will always be created and there will
always be a map in the application.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index 448a24d28..7b5a0ae40 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -23,7 +23,6 @@ #include "core/planner.h" #include "qt-models/filtermodels.h" #include "profile-widget/profilewidget2.h" -#include "desktop-widgets/globe.h" #include "core/divecomputer.h" #include "desktop-widgets/tab-widgets/maintab.h" #include "desktop-widgets/diveplanner.h" @@ -104,12 +103,7 @@ MainWindow::MainWindow() : QMainWindow(), MainTab *mainTab = new MainTab(); DiveListView *diveListView = new DiveListView(); ProfileWidget2 *profileWidget = new ProfileWidget2(); - -#ifndef NO_MARBLE - GlobeGPS *mapWidget = GlobeGPS::instance(); -#else MapWidget *mapWidget = MapWidget::instance(); -#endif PlannerSettingsWidget *plannerSettings = new PlannerSettingsWidget(); DivePlannerWidget *plannerWidget = new DivePlannerWidget(); @@ -216,11 +210,7 @@ MainWindow::MainWindow() : QMainWindow(), diveListView->reload(DiveTripModel::TREE); diveListView->reloadHeaderActions(); diveListView->setFocus(); -#ifndef NO_MARBLE - GlobeGPS::instance()->reload(); -#else MapWidget::instance()->reload(); -#endif diveListView->expand(dive_list()->model()->index(0, 0)); diveListView->scrollTo(dive_list()->model()->index(0, 0), QAbstractItemView::PositionAtCenter); divePlannerWidget()->settingsChanged(); @@ -429,11 +419,7 @@ void MainWindow::refreshDisplay(bool doRecreateDiveList) getNotificationWidget()->showNotification(get_error_string(), KMessageWidget::Error); information()->reload(); TankInfoModel::instance()->update(); -#ifndef NO_MARBLE - GlobeGPS::instance()->reload(); -#else MapWidget::instance()->reload(); -#endif if (doRecreateDiveList) recreateDiveList(); @@ -504,11 +490,7 @@ void MainWindow::current_dive_changed(int divenr) graphics()->plotDive(); information()->updateDiveInfo(); configureToolbar(); -#ifndef NO_MARBLE - GlobeGPS::instance()->reload(); -#else MapWidget::instance()->reload(); -#endif } void MainWindow::on_actionNew_triggered() @@ -664,11 +646,7 @@ void MainWindow::cleanUpEmpty() information()->updateDiveInfo(true); graphics()->setEmptyState(); dive_list()->reload(DiveTripModel::TREE); -#ifndef NO_MARBLE - GlobeGPS::instance()->reload(); -#else MapWidget::instance()->reload(); -#endif if (!existing_filename) setTitle(MWTF_DEFAULT); disableShortcuts(); @@ -1032,11 +1010,7 @@ void MainWindow::on_actionEditDive_triggered() disableShortcuts(); DivePlannerPointsModel::instance()->setPlanMode(DivePlannerPointsModel::ADD); graphics()->setAddState(); -#ifndef NO_MARBLE - GlobeGPS::instance()->endGetDiveCoordinates(); -#else MapWidget::instance()->endGetDiveCoordinates(); -#endif setApplicationState("EditDive"); DivePlannerPointsModel::instance()->loadFromDive(current_dive); information()->enableEdition(MainTab::MANUALLY_ADDED_DIVE); |