summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSayan Biswas <techsayan01@gmail.com>2015-09-08 15:30:41 (GMT)
committerSayan Biswas <techsayan01@gmail.com>2015-09-08 15:30:41 (GMT)
commit237529a837d43b33fa3821de797acf19eb3fe4c6 (patch)
treeaeb0416afd25379a358f7655e786bbc9b85d941f
parent1fd50a43ee92359d0b4ec6ae3e9c4c26adeef7aa (diff)
Migration of Ktouch to kde4 settings
-rw-r--r--src/CMakeLists.txt1
-rw-r--r--src/main.cpp8
2 files changed, 9 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 21521ce..70b014f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -134,6 +134,7 @@ target_link_libraries(ktouch
KF5::KCMUtils
KF5::TextEditor
KF5::WindowSystem
+ KF5:: KCoreAddons
${ktouch_X11_DEPS}
)
diff --git a/src/main.cpp b/src/main.cpp
index fda7e82..332d2da 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -19,6 +19,7 @@
#include <KAboutData>
#include <KLocalizedString>
+#include <Kdelibs4ConfigMigrator>
#include "application.h"
#include "mainwindow.h"
@@ -43,6 +44,13 @@ int main(int argc, char **argv)
QStringLiteral("http://edu.kde.org/ktouch"),
QStringLiteral("submit@bugs.kde.org"));
+ /* for migration*/
+ QStringList configFiles;
+ configFiles << QLatin1String("ktouchrc");
+ Kdelibs4ConfigMigrator migrator(QLatin1String("ktouch"));
+ migrator.setConfigFiles(configFiles);
+ migrator.migrate();
+
about.addAuthor(i18n("Sebastian Gottfried"), i18n("Current maintainer"), "sebastiangottfried@web.de");
about.addAuthor(i18n("Andreas Nicolai"), i18n("Former maintainer and programmer"), "Andreas.Nicolai@gmx.net");
about.addAuthor(i18n("Håvard Frøiland"), i18n("Original author"), "haavard@users.sourceforge.net");