ui: qt high dpi scaling

* Enabled automatic scaling for high dpi systems that has been introduced with qt 5.6. This is only a temporary solution. We should change the ui code to use only em scales instead of pixels.
This commit is contained in:
malte_langkabel
2016-04-21 15:41:57 +02:00
parent 3fe3bcb25d
commit b5bcabb494
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -35,6 +35,7 @@ void init()
int main(int argc, char *argv[])
{
QApplication::setApplicationName("Coati");
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
Version version = Version::fromString(GIT_VERSION_NUMBER);
QApplication::setApplicationVersion(version.toDisplayString().c_str());