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
aa38054f
Commit
aa38054f
authored
Apr 22, 2021
by
Laurent Montel
😁
Browse files
In kf6 kde4 migration code will be removed
parent
c8aef7be
Pipeline
#59131
passed with stage
in 4 minutes and 58 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
contactthemeeditor/main.cpp
View file @
aa38054f
...
...
@@ -9,7 +9,10 @@
#include <KCrash>
#include <KDBusService>
#include <KLocalizedString>
#include <kcoreaddons_version.h>
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <Kdelibs4ConfigMigrator>
#endif
#include <QApplication>
#include <QCommandLineParser>
...
...
@@ -21,12 +24,12 @@ int main(int argc, char **argv)
app
.
setDesktopFileName
(
QStringLiteral
(
"org.kde.contactthemeeditor"
));
KCrash
::
initialize
();
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(6, 0, 0)
Kdelibs4ConfigMigrator
migrate
(
QStringLiteral
(
"contactthemeeditor"
));
migrate
.
setConfigFiles
(
QStringList
()
<<
QStringLiteral
(
"contactthemeeditorrc"
));
migrate
.
setUiFiles
(
QStringList
()
<<
QStringLiteral
(
"contactthemeeditorui.rc"
));
migrate
.
migrate
();
#endif
KLocalizedString
::
setApplicationDomain
(
"contactthemeeditor"
);
KAboutData
aboutData
(
QStringLiteral
(
"contactthemeeditor"
),
i18n
(
"Contact Theme Editor"
),
...
...
headerthemeeditor/main.cpp
View file @
aa38054f
...
...
@@ -11,7 +11,10 @@
#include <KCrash>
#include <KDBusService>
#include <KLocalizedString>
#include <kcoreaddons_version.h>
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <Kdelibs4ConfigMigrator>
#endif
#include <QApplication>
#include <QCommandLineParser>
...
...
@@ -22,10 +25,12 @@ int main(int argc, char **argv)
app
.
setAttribute
(
Qt
::
AA_UseHighDpiPixmaps
,
true
);
app
.
setDesktopFileName
(
QStringLiteral
(
"org.kde.headerthemeeditor"
));
KCrash
::
initialize
();
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(6, 0, 0)
Kdelibs4ConfigMigrator
migrate
(
QStringLiteral
(
"headerthemeeditor"
));
migrate
.
setConfigFiles
(
QStringList
()
<<
QStringLiteral
(
"headerthemeeditorrc"
));
migrate
.
setUiFiles
(
QStringList
()
<<
QStringLiteral
(
"headerthemeeditorui.rc"
));
migrate
.
migrate
();
#endif
KLocalizedString
::
setApplicationDomain
(
"headerthemeeditor"
);
KAboutData
aboutData
(
QStringLiteral
(
"headerthemeeditor"
),
i18n
(
"Header Theme Editor"
),
...
...
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