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

Use directly QT_VERSION

parent 27ecd448
Pipeline #122502 passed with stage
in 2 minutes and 14 seconds
......@@ -13,8 +13,7 @@
#include <KDBusService>
#include <KLocalizedString>
#include <kcoreaddons_version.h>
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(6, 0, 0)
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <Kdelibs4ConfigMigrator>
#endif
#include <QApplication>
......@@ -27,7 +26,7 @@ int main(int argc, char **argv)
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#endif
QApplication app(argc, argv);
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(6, 0, 0)
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
Kdelibs4ConfigMigrator migrate(QStringLiteral("korgac"));
migrate.setConfigFiles(QStringList() << QStringLiteral("korgacrc"));
......
......@@ -18,8 +18,7 @@
#include <KCalUtils/IncidenceFormatter>
#include "korganizer_debug.h"
#include <kcoreaddons_version.h>
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(6, 0, 0)
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include "korgmigrateapplication.h"
#endif
#include <KParts/StatusBarExtension>
......@@ -32,7 +31,7 @@ K_PLUGIN_FACTORY(KOrganizerFactory, registerPlugin<KOrganizerPart>();)
KOrganizerPart::KOrganizerPart(QWidget *parentWidget, QObject *parent, const QVariantList &)
: KParts::ReadOnlyPart(parent)
{
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(6, 0, 0)
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
KOrgMigrateApplication migrate;
migrate.migrate();
#endif
......
......@@ -5,7 +5,7 @@
*/
#include "korgmigrateapplication.h"
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(6, 0, 0)
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <Kdelibs4ConfigMigrator>
KOrgMigrateApplication::KOrgMigrateApplication()
......
......@@ -6,8 +6,7 @@
#pragma once
#include <QObject>
#include <kcoreaddons_version.h>
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(6, 0, 0)
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include "korganizerprivate_export.h"
#include <PimCommon/MigrateApplicationFiles>
......
......@@ -12,8 +12,7 @@
#include "korganizer.h"
#include "korganizer_debug.h"
#include "korganizer_options.h"
#include <kcoreaddons_version.h>
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(6, 0, 0)
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include "korgmigrateapplication.h"
#endif
#include <KCrash>
......@@ -31,7 +30,7 @@ int main(int argc, char **argv)
KOrganizerApp app(argc, &argv);
KCrash::initialize();
KLocalizedString::setApplicationDomain("korganizer");
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(6, 0, 0)
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
KOrgMigrateApplication migrate;
migrate.migrate();
#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