Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Kalendar
Commits
e0543731
Commit
e0543731
authored
Nov 15, 2021
by
Nicolas Fella
Browse files
Default to qqc2-desktop-style
parent
e3da340f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main.cpp
View file @
e0543731
...
...
@@ -12,6 +12,7 @@
#include
<QCommandLineParser>
#include
<QDir>
#include
<QQmlApplicationEngine>
#include
<QQuickStyle>
#include
<QQuickWindow>
#include
<QUrl>
#include
<QtQml>
...
...
@@ -48,6 +49,11 @@ int main(int argc, char *argv[])
QCoreApplication
::
setOrganizationName
(
QStringLiteral
(
"KDE"
));
QCoreApplication
::
setApplicationName
(
QStringLiteral
(
"Kalendar"
));
// Default to org.kde.desktop style unless the user forces another style
if
(
qEnvironmentVariableIsEmpty
(
"QT_QUICK_CONTROLS_STYLE"
))
{
QQuickStyle
::
setStyle
(
QStringLiteral
(
"org.kde.desktop"
));
}
KAboutData
aboutData
(
// The program name used internally.
QStringLiteral
(
"kalendar"
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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