diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-07-12 17:34:52 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-07-12 17:36:49 -0700 |
commit | 4491c91b93e4147e19de37bf9209e35e65fe7895 (patch) | |
tree | 7bdebdc8022150e2dd63da22ced2d9ddc240f605 | |
parent | 6b904f94805249bc2409dbb4c64fcaba87b95148 (diff) | |
download | subsurface-4491c91b93e4147e19de37bf9209e35e65fe7895.tar.gz |
Whitespace cleanup
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-gui.cpp | 11 | ||||
-rw-r--r-- | qt-mobile/qmlmanager.cpp | 4 |
2 files changed, 7 insertions, 8 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp index 9c4d2ba44..1bd0e65ac 100644 --- a/qt-gui.cpp +++ b/qt-gui.cpp @@ -14,11 +14,12 @@ #include "qt-gui.h" #ifdef SUBSURFACE_MOBILE - #include <QQuickWindow> - #include <QQmlApplicationEngine> - #include <QQmlContext> - #include "qt-mobile/qmlmanager.h" - #include "qt-models/divelistmodel.h" +#include <QQuickWindow> +#include <QQmlApplicationEngine> +#include <QQmlContext> +#include "qt-mobile/qmlmanager.h" +#include "qt-models/divelistmodel.h" +QObject *qqWindowObject = NULL; #endif static MainWindow *window = NULL; diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp index bd6fb6906..5ccd4cde7 100644 --- a/qt-mobile/qmlmanager.cpp +++ b/qt-mobile/qmlmanager.cpp @@ -24,7 +24,6 @@ void QMLManager::savePreferences() s.beginGroup("CloudStorage"); s.setValue("email", cloudUserName()); s.setValue("password", cloudPassword()); - s.sync(); } @@ -41,13 +40,12 @@ void QMLManager::loadDives() if (!error) { set_filename(fileNamePrt.data(), true); } - process_dives(false, false); int i; struct dive *d; for_each_dive(i, d) - DiveListModel::instance()->addDive(d); + DiveListModel::instance()->addDive(d); } QString QMLManager::cloudPassword() const |