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

Add AA_EnableHighDpiScaling

parent f48c9790
......@@ -69,6 +69,9 @@ int main(int argc, char **argv)
{
QApplication app(argc, argv);
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#if QT_VERSION >= 0x050600
app.setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
KAboutData aboutData(QStringLiteral("ispdb"),
i18n("ISPDB Assistant"),
QStringLiteral("0.1"),
......
......@@ -36,6 +36,9 @@ int main(int argc, char **argv)
{
QApplication app(argc, argv);
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#if QT_VERSION >= 0x050600
app.setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
KLocalizedString::setApplicationDomain("accountwizard");
KAboutData aboutData(QStringLiteral("accountwizard"),
......
......@@ -36,6 +36,9 @@ int main(int argc, char **argv)
{
QApplication app(argc, argv);
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#if QT_VERSION >= 0x050600
app.setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
Kdelibs4ConfigMigrator migrate(QStringLiteral("akonadiconsole"));
migrate.setConfigFiles(QStringList() << QStringLiteral("akonadiconsolerc"));
migrate.setUiFiles(QStringList() << QStringLiteral("akonadiconsoleui.rc"));
......
......@@ -82,6 +82,9 @@ int main(int argc, char **argv)
KLocalizedString::setApplicationDomain("akregator");
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#if QT_VERSION >= 0x050600
app.setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
Akregator::AboutData about;
app.setAboutData(about);
......
......@@ -37,6 +37,10 @@ int main(int argc, char *argv[])
{
QApplication app(argc, argv);
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#if QT_VERSION >= 0x050600
app.setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
BlogiloMigrateApplication migrate;
migrate.migrate();
......
......@@ -31,6 +31,9 @@ int main(int argc, char **argv)
{
QApplication app(argc, argv);
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#if QT_VERSION >= 0x050600
app.setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
KLocalizedString::setApplicationDomain("contactprintthemeeditor");
KAboutData aboutData(QStringLiteral("contactprintthemeeditor"),
i18n("Contact Print Theme Editor"),
......
......@@ -31,6 +31,9 @@ int main(int argc, char **argv)
{
QApplication app(argc, argv);
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#if QT_VERSION >= 0x050600
app.setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
Kdelibs4ConfigMigrator migrate(QStringLiteral("contactthemeeditor"));
migrate.setConfigFiles(QStringList() << QStringLiteral("contactthemeeditorrc"));
migrate.setUiFiles(QStringList() << QStringLiteral("contactthemeeditorui.rc"));
......
......@@ -34,6 +34,9 @@ int main(int argc, char **argv)
{
QApplication app(argc, argv);
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#if QT_VERSION >= 0x050600
app.setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
Kdelibs4ConfigMigrator migrate(QStringLiteral("headerthemeeditor"));
migrate.setConfigFiles(QStringList() << QStringLiteral("headerthemeeditorrc"));
migrate.setUiFiles(QStringList() << QStringLiteral("headerthemeeditorui.rc"));
......
......@@ -32,6 +32,9 @@ int main(int argc, char *argv[])
{
QApplication app(argc, argv);
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#if QT_VERSION >= 0x050600
app.setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
Kdelibs4ConfigMigrator migrate(QStringLiteral("importwizard"));
migrate.setConfigFiles(QStringList() << QStringLiteral("importwizardrc"));
migrate.migrate();
......
......@@ -59,6 +59,9 @@ int main(int argc, char **argv)
{
KAddressBookApplication app(argc, &argv);
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#if QT_VERSION >= 0x050600
app.setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
KLocalizedString::setApplicationDomain("kaddressbook");
AboutData about;
......
......@@ -43,6 +43,9 @@ int main(int argc, char* argv[])
KAlarmApp* app = KAlarmApp::create(argc, argv);
QStringList args = app->arguments();
app->setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#if QT_VERSION >= 0x050600
app->setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
KLocalizedString::setApplicationDomain("kalarm");
KAboutData aboutData(QStringLiteral(PROGRAM_NAME), i18n("KAlarm"),
......
......@@ -114,6 +114,9 @@ int main(int argc, char *argv[])
KMailApplication app(argc, &argv);
KLocalizedString::setApplicationDomain("kmail");
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#if QT_VERSION >= 0x050600
app.setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kmail")));
KMail::AboutData about;
app.setAboutData(about);
......
......@@ -46,6 +46,9 @@ int main(int argc, char *argv[])
{
Application app(argc, &argv);
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#if QT_VERSION >= 0x050600
app.setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
KNotesMigrateApplication migrate;
migrate.migrate();
......
......@@ -157,6 +157,9 @@ int main(int argc, char **argv)
{
KontactApp app(argc, &argv);
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#if QT_VERSION >= 0x050600
app.setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
Kdelibs4ConfigMigrator migrate(QStringLiteral("kontact"));
migrate.setConfigFiles(QStringList() << QStringLiteral("kontactrc") << QStringLiteral("kontact_summaryrc"));
migrate.setUiFiles(QStringList() << QStringLiteral("kontactui.rc"));
......
......@@ -42,6 +42,9 @@ int main(int argc, char **argv)
{
QApplication app(argc, argv);
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#if QT_VERSION >= 0x050600
app.setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
Kdelibs4ConfigMigrator migrate(QStringLiteral("korgac"));
migrate.setConfigFiles(QStringList() << QStringLiteral("korgacrc"));
......
......@@ -36,6 +36,9 @@ int main(int argc, char **argv)
{
KOrganizerApp app(argc, &argv);
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#if QT_VERSION >= 0x050600
app.setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
KLocalizedString::setApplicationDomain("korganizer");
KOrgMigrateApplication migrate;
migrate.migrate();
......
......@@ -29,6 +29,9 @@ int main(int argc, char *argv[])
QApplication app(argc, argv);
KLocalizedString::setApplicationDomain("ktnef");
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#if QT_VERSION >= 0x050600
app.setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
Kdelibs4ConfigMigrator migrate(QStringLiteral("ktnef"));
migrate.setConfigFiles(QStringList() << QStringLiteral("ktnefrc"));
migrate.setUiFiles(QStringList() << QStringLiteral("ktnefui.rc"));
......
......@@ -30,6 +30,9 @@ int main(int argc, char *argv[])
{
QApplication app(argc, argv);
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#if QT_VERSION >= 0x050600
app.setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
KLocalizedString::setApplicationDomain("mboximporter");
KAboutData aboutData(QStringLiteral("mboximporter"),
......
......@@ -32,6 +32,9 @@ int main(int argc, char *argv[])
KLocalizedString::setApplicationDomain("pimsettingexporter");
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#if QT_VERSION >= 0x050600
app.setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
Kdelibs4ConfigMigrator migrate(QStringLiteral("pimsettingexporter"));
migrate.setConfigFiles(QStringList() << QStringLiteral("pimsettingexporterrc"));
migrate.setUiFiles(QStringList() << QStringLiteral("pimsettingexporter.rc"));
......
......@@ -31,6 +31,9 @@ int main(int argc, char **argv)
{
QApplication app(argc, argv);
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#if QT_VERSION >= 0x050600
app.setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
Kdelibs4ConfigMigrator migrate(QStringLiteral("sieveeditor"));
migrate.setConfigFiles(QStringList() << QStringLiteral("sieveeditorrc") << QStringLiteral("sievetemplaterc"));
migrate.setUiFiles(QStringList() << QStringLiteral("sieveeditorui.rc"));
......
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