[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [calligra] words/app: Words: Migrate from kde4 locations to kf5 locations
From:       Dag Andersen <danders () get2net ! dk>
Date:       2016-11-30 13:40:27
Message-ID: E1cC57b-0000LE-RZ () code ! kde ! org
[Download RAW message or body]

Git commit 0e88d05906b90950b1b54549457a2df54fe75183 by Dag Andersen.
Committed on 30/11/2016 at 13:40.
Pushed by danders into branch 'master'.

Words: Migrate from kde4 locations to kf5 locations

Summary: Please check if all files have been included in migration

Test Plan:
Tested uite well with plan
Cursory test with words

Reviewers: boemann

Tags: #kexi, #calligra:_3.0

Differential Revision: https://phabricator.kde.org/D3485

M  +7    -0    words/app/main.cpp

https://commits.kde.org/calligra/0e88d05906b90950b1b54549457a2df54fe75183

diff --git a/words/app/main.cpp b/words/app/main.cpp
index f4208a1..b49c1b0 100644
--- a/words/app/main.cpp
+++ b/words/app/main.cpp
@@ -21,6 +21,7 @@
 #include <KWDocument.h>
 =

 #include <KoApplication.h>
+#include <Calligra2Migration.h>
 =

 #include <QLoggingCategory>
 =

@@ -44,6 +45,12 @@ extern "C" WORDS_EXPORT int kdemain(int argc, char **arg=
v)
 =

     delete aboutData;
 =

+    // Migrate data from kde4 to kf5 locations
+    Calligra2Migration m("calligrawords", "words");
+    m.setConfigFiles(QStringList() << QStringLiteral("wordsrc"));
+    m.setUiFiles(QStringList() << QStringLiteral("words.rc") << QStringLit=
eral("words_readonly.rc"));
+    m.migrate();
+
     if (!app.start()) {
         return 1;
     }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic