Commit fe83f2e7 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

In kf6 migration method will be removed

parent b8726078
Pipeline #58982 canceled with stage
......@@ -10,7 +10,10 @@
#include "knotes-version.h"
#include "knotes_debug.h"
#include "knotes_options.h"
#include <kcoreaddons_version.h>
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include "notes/knotesmigrateapplication.h"
#endif
#include <KLocalizedString>
#include <config-knotes.h>
......@@ -32,8 +35,10 @@ int main(int argc, char *argv[])
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true);
Application app(argc, &argv);
KCrash::initialize();
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(6, 0, 0)
KNotesMigrateApplication migrate;
migrate.migrate();
#endif
KAboutData aboutData(QStringLiteral("knotes"),
i18n("KNotes"),
......
......@@ -4,7 +4,8 @@
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "knotesmigrateapplication.h"
#include <kcoreaddons_version.h>
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <Kdelibs4ConfigMigrator>
KNotesMigrateApplication::KNotesMigrateApplication()
......@@ -42,3 +43,4 @@ void KNotesMigrateApplication::initializeMigrator()
migrateInfoThemePrint.setVersion(initialVersion);
mMigrator.insertMigrateInfo(migrateInfoThemePrint);
}
#endif
......@@ -4,9 +4,10 @@
SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include <QObject>
#include <kcoreaddons_version.h>
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include "knotes_export.h"
#include <PimCommon/MigrateApplicationFiles>
class KNOTES_EXPORT KNotesMigrateApplication
......@@ -19,4 +20,4 @@ private:
void initializeMigrator();
PimCommon::MigrateApplicationFiles mMigrator;
};
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment