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
Utilities
KGpg
Commits
1a70bd9e
Commit
1a70bd9e
authored
Jan 19, 2022
by
Laurent Montel
Browse files
Kdelibs4ConfigMigrator will be removed in qt6
parent
a09bb2e3
Pipeline
#125546
passed with stage
in 2 minutes and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
main.cpp
View file @
1a70bd9e
...
...
@@ -13,7 +13,9 @@
#include
<KAboutData>
#include
<KCrash>
#include
<KDBusService>
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include
<Kdelibs4ConfigMigrator>
#endif
#include
<KLocalizedString>
int
main
(
int
argc
,
char
*
argv
[])
...
...
@@ -23,11 +25,12 @@ int main(int argc, char *argv[])
app
.
setAttribute
(
Qt
::
AA_UseHighDpiPixmaps
,
true
);
KCrash
::
initialize
();
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
Kdelibs4ConfigMigrator
migrate
(
QLatin1String
(
"kgpg"
));
migrate
.
setConfigFiles
({
QLatin1String
(
"kgpgrc"
)
});
migrate
.
setUiFiles
({
QStringLiteral
(
"keysmanager.rc"
),
QStringLiteral
(
"kgpgeditor.rc"
)
});
migrate
.
migrate
();
#endif
KLocalizedString
::
setApplicationDomain
(
"kgpg"
);
...
...
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