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

It will be removed in qt6

parent cd0abd82
Pipeline #127621 passed with stage
in 55 seconds
......@@ -21,7 +21,9 @@
#include <KLocalizedString>
/* these includes are needed for Qt support */
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <Kdelibs4ConfigMigrator>
#endif
#include <QApplication>
#include <QCommandLineParser>
#include <QObject>
......@@ -31,18 +33,20 @@ int main(int argc, char * argv[])
{
// init random generator
qsrand(time(nullptr));
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
QApplication app(argc, argv);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#endif
KLocalizedString::setApplicationDomain("kbruch");
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
Kdelibs4ConfigMigrator migrate(QStringLiteral("kbruch"));
migrate.setConfigFiles(QStringList() << QStringLiteral("kbruchrc"));
migrate.setUiFiles(QStringList() << QStringLiteral("AppMenuWidgetui.rc") << QStringLiteral("FractionRingWidgetui.rc") << QStringLiteral("kbruchui.rc"));
migrate.migrate();
#endif
/* fill the about data; the common KDE about dialog will show it to the
......
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