Commit b64c3d92 authored by Laurent Montel's avatar Laurent Montel 😁

Fix hdpi support

parent 00db9bd7
......@@ -79,13 +79,13 @@ int Application::activate(const QStringList &args, const QString &workingDir)
int main(int argc, char **argv)
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
Akregator::Application app(argc, &argv);
KLocalizedString::setApplicationDomain("akregator");
KCrash::initialize();
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
app.setAttribute(Qt::AA_EnableHighDpiScaling);
Akregator::AboutData about;
app.setAboutData(about);
......
......@@ -58,9 +58,9 @@ int KAddressBookApplication::activate(const QStringList &arguments, const QStrin
int main(int argc, char **argv)
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
KAddressBookApplication app(argc, &argv);
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
app.setAttribute(Qt::AA_EnableHighDpiScaling);
KCrash::initialize();
KLocalizedString::setApplicationDomain("kaddressbook");
......
......@@ -110,6 +110,7 @@ void KMailApplication::delayedInstanceCreation(const QStringList &args, const QS
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#ifdef Q_OS_UNIX
// enforce xcb plugin fix bug Bug 367598
setenv("QT_QPA_PLATFORM", "xcb", true);
......@@ -117,7 +118,6 @@ int main(int argc, char *argv[])
KMailApplication app(argc, &argv);
KLocalizedString::setApplicationDomain("kmail");
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
app.setAttribute(Qt::AA_EnableHighDpiScaling);
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kmail")));
KCrash::initialize();
KMail::AboutData about;
......
......@@ -156,9 +156,9 @@ int KontactApp::activate(const QStringList &args, const QString &workingDir)
int main(int argc, char **argv)
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
KontactApp app(argc, &argv);
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
app.setAttribute(Qt::AA_EnableHighDpiScaling);
KCrash::initialize();
Kdelibs4ConfigMigrator migrate(QStringLiteral("kontact"));
migrate.setConfigFiles(QStringList() << QStringLiteral("kontactrc") << QStringLiteral("kontact_summaryrc"));
......
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