Skip to content
This repository has been archived by the owner on Jan 12, 2020. It is now read-only.

Commit

Permalink
Enable High DPI scaling support.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtl1979 committed Aug 28, 2019
1 parent a65f8b1 commit 69488f0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Application/WalletApplication.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2015-2018, The Bytecoin developers
// Copyright (c) 2018, The PinkstarcoinV2 developers
// Copyright (c) 2018, The Bittorium developers
// Copyright (c) 2018-2019, The Bittorium developers
//
// This file is part of Bytecoin.
//
Expand Down Expand Up @@ -106,6 +106,12 @@ WalletApplication::WalletApplication(int& _argc, char** _argv) : QApplication(_a
m_systemTrayIcon(new QSystemTrayIcon(this)), m_applicationEventHandler(new ApplicationEventHandler(this)),
m_optimizationManager(nullptr), m_blogReader(new BlogReader(this)), m_mainWindow(nullptr), m_splash(nullptr),
m_logWatcher(nullptr), m_isAboutToQuit(false) {
if (!qEnvironmentVariableIsSet("QT_DEVICE_PIXEL_RATIO")
&& !qEnvironmentVariableIsSet("QT_AUTO_SCREEN_SCALE_FACTOR")
&& !qEnvironmentVariableIsSet("QT_SCALE_FACTOR")
&& !qEnvironmentVariableIsSet("QT_SCREEN_SCALE_FACTORS")) {
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
}
setApplicationName("BittoriumWallet");
setApplicationVersion(Settings::instance().getVersion());
setQuitOnLastWindowClosed(false);
Expand Down

0 comments on commit 69488f0

Please sign in to comment.