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

List:       kde-commits
Subject:    [calligra] sheets/part: Sheets: Migrate from kde4 locations to kf5 locations
From:       Dag Andersen <danders () get2net ! dk>
Date:       2016-11-30 13:41:16
Message-ID: E1cC58O-0002Nx-DD () code ! kde ! org
[Download RAW message or body]

Git commit 2b3671451fd8b3370b5757b234e82a19c60102d1 by Dag Andersen.
Committed on 30/11/2016 at 13:41.
Pushed by danders into branch 'master'.

Sheets: Migrate from kde4 locations to kf5 locations

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

Test Plan:
Tested migration quite well with plan
Cursory test with sheets

Reviewers: mecir

Tags: #kexi, #calligra:_3.0

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

M  +7    -0    sheets/part/Main.cpp

https://commits.kde.org/calligra/2b3671451fd8b3370b5757b234e82a19c60102d1

diff --git a/sheets/part/Main.cpp b/sheets/part/Main.cpp
index 461f48e..ef5d345 100644
--- a/sheets/part/Main.cpp
+++ b/sheets/part/Main.cpp
@@ -23,6 +23,7 @@
 #include "sheets_common_export.h"
 =

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

 #include <QLoggingCategory>
 =

@@ -51,6 +52,12 @@ extern "C" CALLIGRA_SHEETS_COMMON_EXPORT int kdemain(int=
 argc, char **argv)
 =

     delete aboutData;
 =

+    // Migrate data from kde4 to kf5 locations
+    Calligra2Migration m("calligrasheets", "sheets");
+    m.setConfigFiles(QStringList() << QStringLiteral("sheetsrc"));
+    m.setUiFiles(QStringList() << QStringLiteral("sheets.rc") << QStringLi=
teral("sheets_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