1
0
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:
Sean 2015-03-02 03:38:42 -08:00 committed by tux3
parent 17042c1aff
commit f19b6230ed
2 changed files with 10 additions and 1 deletions

View File

@ -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. # 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 DEFINES += QTOX_FILTER_AUDIO
} }
contains(HIGH_DPI, YES) {
QT_DEVICE_PIXEL_RATIO= auto
DEFINES += HIGH_DPI
}
contains(JENKINS,YES) { contains(JENKINS,YES) {
INCLUDEPATH += ./libs/include/ INCLUDEPATH += ./libs/include/
} else { } else {

View File

@ -63,6 +63,10 @@ int main(int argc, char *argv[])
a.setOrganizationName("Tox"); a.setOrganizationName("Tox");
a.setApplicationVersion("\nGit commit: " + QString(GIT_VERSION)); a.setApplicationVersion("\nGit commit: " + QString(GIT_VERSION));
#ifdef HIGH_DPI
a.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#endif
// Process arguments // Process arguments
QCommandLineParser parser; QCommandLineParser parser;
parser.setApplicationDescription("qTox, version: " + QString(GIT_VERSION) + "\nBuilt: " + __TIME__ + " " + __DATE__); parser.setApplicationDescription("qTox, version: " + QString(GIT_VERSION) + "\nBuilt: " + __TIME__ + " " + __DATE__);