aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorJaquee <jaquee.monero@gmail.com>2017-03-02 09:28:43 +0100
committerJaquee <jaquee.monero@gmail.com>2017-03-02 09:28:43 +0100
commite4314ddb4c7cddd31849ea58a609b8b98b21d2fe (patch)
treeedec8b61d8d40aace6068b375e21d9ff2b1c8d5f /main.cpp
parente90c18603a06bf1925b7d3410305fb7137a33042 (diff)
downloadmonzero-gui-e4314ddb4c7cddd31849ea58a609b8b98b21d2fe.tar.gz
monzero-gui-e4314ddb4c7cddd31849ea58a609b8b98b21d2fe.tar.xz
monzero-gui-e4314ddb4c7cddd31849ea58a609b8b98b21d2fe.zip
only enable high dpi scaling on qt >= 5.6
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index 8f36e026..486d4338 100644
--- a/main.cpp
+++ b/main.cpp
@@ -65,12 +65,15 @@ void messageHandler(QtMsgType type, const QMessageLogContext &context, const QSt
int main(int argc, char *argv[])
{
// Enable high DPI scaling on windows & linux
-#if !defined(Q_OS_ANDROID)
+#if !defined(Q_OS_ANDROID) && QT_VERSION >= 0x050600
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+ qDebug() << "High DPI auto scaling - enabled";
#endif
- Monero::Wallet::init(argv[0], "monero-wallet-gui");
+ // Log settings
+ Monero::Wallet::init(argv[0], "monero-wallet-gui");
qInstallMessageHandler(messageHandler);
+
QApplication app(argc, argv);
qDebug() << "app startd";