Update main.cpp

Qt::AA_EnableHighDpiScaling was added in Qt 5.6.
This commit is contained in:
Eric 2019-06-04 10:47:31 -04:00 committed by GitHub
parent b890dc2775
commit 45168024a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,9 @@ int main( int argc, char **argv )
using mapnik::freetype_engine; using mapnik::freetype_engine;
try try
{ {
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
QCoreApplication::setOrganizationName("Mapnik"); QCoreApplication::setOrganizationName("Mapnik");
QCoreApplication::setOrganizationDomain("mapnik.org"); QCoreApplication::setOrganizationDomain("mapnik.org");
QCoreApplication::setApplicationName("Viewer"); QCoreApplication::setApplicationName("Viewer");