aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-23 07:31:44 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-23 08:42:45 -0700
commit57e365222b939668a54281f9edea34c7fdf3a152 (patch)
tree3f7fc5f8c2c2094e14a640fe467bb13711024162 /mobile-widgets/qmlmanager.h
parentb109b51f7f1f764ef195726e9b676ef0c49d6add (diff)
downloadsubsurface-57e365222b939668a54281f9edea34c7fdf3a152.tar.gz
QML UI: color the status bar on Android
This code is based on code from Marco Martin from the Kirigami Android sample app. In order to simplify the QML code the QMLManager function is there for all OSs, but it's a no-op on anything but Android. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.h')
-rw-r--r--mobile-widgets/qmlmanager.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h
index 53b3634d6..f1ccf6403 100644
--- a/mobile-widgets/qmlmanager.h
+++ b/mobile-widgets/qmlmanager.h
@@ -7,6 +7,7 @@
#include <QNetworkAccessManager>
#include <QScreen>
#include <QElapsedTimer>
+#include <QColor>
#include "core/btdiscovery.h"
#include "core/gpslocation.h"
@@ -115,6 +116,7 @@ public:
QStringList cylinderInit() const;
bool showPin() const;
void setShowPin(bool enable);
+ Q_INVOKABLE void setStatusbarColor(QColor color);
public slots:
void applicationStateChanged(Qt::ApplicationState state);