mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
High DPI scaling
High DPI scaling Update qtox.pro Oh right not everyone uses Qt5.4 Why did I use the web ui
This commit is contained in:
parent
17042c1aff
commit
f19b6230ed
7
qtox.pro
7
qtox.pro
|
@ -5,7 +5,7 @@
|
|||
#-------------------------------------------------
|
||||
|
||||
|
||||
# Copyright (C) 2014 by Project Tox <https://tox.im>
|
||||
# Copyright (C) 2015 by Project Tox <https://tox.im>
|
||||
#
|
||||
# This file is part of qTox, a Qt-based graphical interface for Tox.
|
||||
#
|
||||
|
@ -100,6 +100,11 @@ contains(DISABLE_FILTER_AUDIO, YES) {
|
|||
DEFINES += QTOX_FILTER_AUDIO
|
||||
}
|
||||
|
||||
contains(HIGH_DPI, YES) {
|
||||
QT_DEVICE_PIXEL_RATIO= auto
|
||||
DEFINES += HIGH_DPI
|
||||
}
|
||||
|
||||
contains(JENKINS,YES) {
|
||||
INCLUDEPATH += ./libs/include/
|
||||
} else {
|
||||
|
|
|
@ -62,6 +62,10 @@ int main(int argc, char *argv[])
|
|||
a.setApplicationName("qTox");
|
||||
a.setOrganizationName("Tox");
|
||||
a.setApplicationVersion("\nGit commit: " + QString(GIT_VERSION));
|
||||
|
||||
#ifdef HIGH_DPI
|
||||
a.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
|
||||
#endif
|
||||
|
||||
// Process arguments
|
||||
QCommandLineParser parser;
|
||||
|
|
Loading…
Reference in New Issue
Block a user