Skip to content

Commit

Permalink
Fixup "Use high DPI pixmaps"
Browse files Browse the repository at this point in the history
AA_UseHighDpiPixmaps exists since 5.1.0 of course

Related to KDAB#269

Change-Id: Iab9185ac2c0fa8e979018bdfae065d168277cd05
  • Loading branch information
krf committed Aug 1, 2016
1 parent 719ebb0 commit bca15c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Charm/Charm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ int main ( int argc, char** argv )
}

try {
// High DPI support
#if QT_VERSION >= QT_VERSION_CHECK(5,1,0)
QGuiApplication::setAttribute( Qt::AA_UseHighDpiPixmaps, true );
#endif
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0)
// High DPI support
QGuiApplication::setAttribute( Qt::AA_EnableHighDpiScaling );
Expand Down

0 comments on commit bca15c8

Please sign in to comment.