Enable HiDPI rendering for rules dialog and killer dialog.
Summary: Enable AA_UseHighDpiPixmaps application attribute Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D23987
This commit is contained in:
parent
5e1348c4b8
commit
87a2100f6a
2 changed files with 2 additions and 0 deletions
|
@ -40,6 +40,7 @@ int main(int argc, char* argv[])
|
|||
KLocalizedString::setApplicationDomain("kwin");
|
||||
qputenv("QT_QPA_PLATFORM", QByteArrayLiteral("xcb"));
|
||||
QApplication app(argc, argv);
|
||||
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
|
||||
QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("dialog-warning")));
|
||||
QCoreApplication::setApplicationName(QStringLiteral("kwin_killer_helper"));
|
||||
QCoreApplication::setOrganizationDomain(QStringLiteral("kde.org"));
|
||||
|
|
|
@ -237,6 +237,7 @@ extern "C"
|
|||
KWIN_EXPORT int kdemain(int argc, char* argv[])
|
||||
{
|
||||
QApplication app(argc, argv);
|
||||
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
|
||||
app.setApplicationDisplayName(i18n("KWin"));
|
||||
app.setApplicationName("kwin_rules_dialog");
|
||||
app.setApplicationVersion("1.0");
|
||||
|
|
Loading…
Reference in a new issue