summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrius Štikonas <andrius@stikonas.eu>2016-07-13 20:30:43 (GMT)
committerAndrius Štikonas <andrius@stikonas.eu>2016-07-13 20:30:43 (GMT)
commit3319930c6b50f6d874cde9ddfeb2b7341175fb05 (patch)
treec518e6ab77fb37b1022919b09661c0acb40b4218
parentf8f98b742006b77c5536251f5912d9d3042e0491 (diff)
Migrate kde4 config files.
-rw-r--r--main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 72b8600..0177a02 100644
--- a/main.cpp
+++ b/main.cpp
@@ -21,12 +21,18 @@
#include <KAboutData>
#include <KDBusService>
+#include <Kdelibs4ConfigMigrator>
#include <KLocalizedString>
int main(int argc, char *argv[])
{
KGpgApp *app = new KGpgApp(argc, argv);
+ Kdelibs4ConfigMigrator migrate(QLatin1Literal("kgpg"));
+ migrate.setConfigFiles({ QLatin1Literal("kgpgrc") });
+ migrate.setUiFiles({ QStringLiteral("keysmanager.rc"), QStringLiteral("kgpgeditor.rc") });
+ migrate.migrate();
+
KLocalizedString::setApplicationDomain("kgpg");
KAboutData about (