diff --git a/words/app/main.cpp b/words/app/main.cpp --- a/words/app/main.cpp +++ b/words/app/main.cpp @@ -21,6 +21,7 @@ #include #include +#include #include @@ -44,6 +45,12 @@ delete aboutData; + // Migrate data from kde4 to kf5 locations + Calligra2Migration m("calligrawords", "words"); + m.setConfigFiles(QStringList() << QStringLiteral("wordsrc")); + m.setUiFiles(QStringList() << QStringLiteral("words.rc") << QStringLiteral("words_readonly.rc")); + m.migrate(); + if (!app.start()) { return 1; }