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
Plasma
KMenuEdit
Commits
4574f37a
Commit
4574f37a
authored
Jan 19, 2022
by
Laurent Montel
Browse files
Kdelibs4ConfigMigrator will be removed in qt6
parent
9241428e
Pipeline
#125549
passed with stage
in 1 minute and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
main.cpp
View file @
4574f37a
...
...
@@ -9,7 +9,9 @@
#include
<KAboutData>
#include
<KLocalizedString>
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include
<Kdelibs4ConfigMigrator>
#endif
#include
<kdbusservice.h>
#include
"kmenuedit.h"
...
...
@@ -34,12 +36,13 @@ public:
int
main
(
int
argc
,
char
**
argv
)
{
KMenuApplication
app
(
argc
,
argv
);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
Kdelibs4ConfigMigrator
migrate
(
QStringLiteral
(
"kmenuedit"
));
migrate
.
setConfigFiles
(
QStringList
()
<<
QStringLiteral
(
"kmenueditrc"
));
migrate
.
setUiFiles
(
QStringList
()
<<
QStringLiteral
(
"kmenueditui.rc"
));
migrate
.
migrate
();
QGuiApplication
::
setAttribute
(
Qt
::
AA_UseHighDpiPixmaps
);
#endif
KLocalizedString
::
setApplicationDomain
(
"kmenuedit"
);
KAboutData
aboutData
(
QStringLiteral
(
"kmenuedit"
),
...
...
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