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
PIM
Grantlee Editor
Commits
0b1df377
Commit
0b1df377
authored
Jan 13, 2022
by
Laurent Montel
😁
Browse files
Use directly QT_VERSION
parent
c8e02257
Pipeline
#122497
passed with stage
in 54 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
contactthemeeditor/main.cpp
View file @
0b1df377
...
...
@@ -9,8 +9,7 @@
#include <KCrash>
#include <KDBusService>
#include <KLocalizedString>
#include <kcoreaddons_version.h>
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(6, 0, 0)
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <Kdelibs4ConfigMigrator>
#endif
#include <QApplication>
...
...
@@ -26,7 +25,7 @@ int main(int argc, char **argv)
app
.
setDesktopFileName
(
QStringLiteral
(
"org.kde.contactthemeeditor"
));
KCrash
::
initialize
();
#if
KCOREADDONS
_VERSION < QT_VERSION_CHECK(6, 0, 0)
#if
QT
_VERSION < QT_VERSION_CHECK(6, 0, 0)
Kdelibs4ConfigMigrator
migrate
(
QStringLiteral
(
"contactthemeeditor"
));
migrate
.
setConfigFiles
(
QStringList
()
<<
QStringLiteral
(
"contactthemeeditorrc"
));
migrate
.
setUiFiles
(
QStringList
()
<<
QStringLiteral
(
"contactthemeeditorui.rc"
));
...
...
headerthemeeditor/main.cpp
View file @
0b1df377
...
...
@@ -11,8 +11,7 @@
#include <KCrash>
#include <KDBusService>
#include <KLocalizedString>
#include <kcoreaddons_version.h>
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(6, 0, 0)
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <Kdelibs4ConfigMigrator>
#endif
#include <QApplication>
...
...
@@ -27,7 +26,7 @@ int main(int argc, char **argv)
QApplication
app
(
argc
,
argv
);
app
.
setDesktopFileName
(
QStringLiteral
(
"org.kde.headerthemeeditor"
));
KCrash
::
initialize
();
#if
KCOREADDONS
_VERSION < QT_VERSION_CHECK(6, 0, 0)
#if
QT
_VERSION < QT_VERSION_CHECK(6, 0, 0)
Kdelibs4ConfigMigrator
migrate
(
QStringLiteral
(
"headerthemeeditor"
));
migrate
.
setConfigFiles
(
QStringList
()
<<
QStringLiteral
(
"headerthemeeditorrc"
));
migrate
.
setUiFiles
(
QStringList
()
<<
QStringLiteral
(
"headerthemeeditorui.rc"
));
...
...
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