mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-24 20:49:24 +00:00
only enable high dpi scaling on qt >= 5.6
This commit is contained in:
parent
e90c18603a
commit
e4314ddb4c
1 changed files with 5 additions and 2 deletions
7
main.cpp
7
main.cpp
|
@ -65,12 +65,15 @@ void messageHandler(QtMsgType type, const QMessageLogContext &context, const QSt
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
// Enable high DPI scaling on windows & linux
|
// 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);
|
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||||
|
qDebug() << "High DPI auto scaling - enabled";
|
||||||
#endif
|
#endif
|
||||||
Monero::Wallet::init(argv[0], "monero-wallet-gui");
|
|
||||||
|
|
||||||
|
// Log settings
|
||||||
|
Monero::Wallet::init(argv[0], "monero-wallet-gui");
|
||||||
qInstallMessageHandler(messageHandler);
|
qInstallMessageHandler(messageHandler);
|
||||||
|
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
|
|
||||||
qDebug() << "app startd";
|
qDebug() << "app startd";
|
||||||
|
|
Loading…
Reference in a new issue