Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SDK
Kirigami Gallery
Commits
2977763e
Commit
2977763e
authored
Mar 11, 2021
by
Nicolas Fella
Browse files
Use qqc2-desktop-style by default
Otherwise we may end up using the Default style which is just horrible
parent
612557d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main.cpp
View file @
2977763e
...
...
@@ -18,6 +18,7 @@
*/
#include <QQmlApplicationEngine>
#include <QQuickStyle>
#include <QtQml>
#include <QUrl>
#include <QColor>
...
...
@@ -26,7 +27,6 @@
#ifdef Q_OS_ANDROID
#include <QtAndroid>
#include <QGuiApplication>
#include <QQuickStyle>
// WindowManager.LayoutParams
#define FLAG_TRANSLUCENT_STATUS 0x04000000
...
...
@@ -49,6 +49,10 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
QGuiApplication
app
(
argc
,
argv
);
QQuickStyle
::
setStyle
(
QStringLiteral
(
"Material"
));
#else
// Default to org.kde.desktop style unless the user forces another style
if
(
qEnvironmentVariableIsEmpty
(
"QT_QUICK_CONTROLS_STYLE"
))
{
QQuickStyle
::
setStyle
(
QStringLiteral
(
"org.kde.desktop"
));
}
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