Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
SDK
Kirigami Gallery
Commits
44a1c6a6
Commit
44a1c6a6
authored
Sep 29, 2020
by
Tobias Fella
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set style to material on android
parent
cb3da220
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/main.cpp
src/main.cpp
+5
-5
No files found.
src/main.cpp
View file @
44a1c6a6
...
...
@@ -17,11 +17,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifdef Q_OS_ANDROID
#include <QGuiApplication>
#else
#include <QApplication>
#endif
#include <QQmlApplicationEngine>
#include <QtQml>
#include <QUrl>
...
...
@@ -30,6 +25,8 @@
#ifdef Q_OS_ANDROID
#include <QtAndroid>
#include <QGuiApplication>
#include <QQuickStyle>
// WindowManager.LayoutParams
#define FLAG_TRANSLUCENT_STATUS 0x04000000
...
...
@@ -37,6 +34,8 @@
// View
#define SYSTEM_UI_FLAG_LIGHT_STATUS_BAR 0x00002000
#else
#include <QApplication>
#endif
...
...
@@ -47,6 +46,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
//The desktop QQC2 style needs it to be a QApplication
#ifdef Q_OS_ANDROID
QGuiApplication
app
(
argc
,
argv
);
QQuickStyle
::
setStyle
(
QStringLiteral
(
"Material"
));
#else
QApplication
app
(
argc
,
argv
);
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment