summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-05-24 21:30:19 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-05-24 21:30:19 -0500
commit36541505b3e9829614de34da1afa3b72687dc042 (patch)
treee7038873debb477a0226dbb922ccf58defa609e9 /ui
parent9c9e400b68f9cfb2270434fb8a16cc0df906ab8b (diff)
downloadhorizon-36541505b3e9829614de34da1afa3b72687dc042.tar.gz
horizon-36541505b3e9829614de34da1afa3b72687dc042.tar.bz2
horizon-36541505b3e9829614de34da1afa3b72687dc042.tar.xz
horizon-36541505b3e9829614de34da1afa3b72687dc042.zip
Qt UI: Fix high DPI support
Diffstat (limited to 'ui')
-rw-r--r--ui/qt5/main.cc2
1 files changed, 1 insertions, 1 deletions
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);