From 36541505b3e9829614de34da1afa3b72687dc042 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 24 May 2020 21:30:19 -0500 Subject: Qt UI: Fix high DPI support --- ui/qt5/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/qt5/main.cc') diff --git a/ui/qt5/main.cc b/ui/qt5/main.cc index 6918bde..5602d1f 100644 --- a/ui/qt5/main.cc +++ b/ui/qt5/main.cc @@ -44,8 +44,8 @@ void WaitDialog::accept() { return; } void WaitDialog::reject() { return; } int main(int argc, char *argv[]) { + QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication app(argc, argv); - app.setAttribute(Qt::AA_EnableHighDpiScaling); app.setOrganizationName("Adélie Linux"); app.setApplicationName("Horizon Qt UI"); app.setApplicationVersion(VERSTR); -- cgit v1.2.3-60-g2f50