Skip to content

Commit

Permalink
Use high DPI pixmaps
Browse files Browse the repository at this point in the history
Related to KDAB#269

Change-Id: Iab9185ac2c0fa8e979018bdfae065d168277cd05
  • Loading branch information
krf committed Aug 1, 2016
1 parent 2b86b3e commit 1757a59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Charm/Charm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ int main ( int argc, char** argv )

try {
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0)
// High DPI support
QGuiApplication::setAttribute( Qt::AA_EnableHighDpiScaling );
QGuiApplication::setAttribute( Qt::AA_UseHighDpiPixmaps, true );
#endif
QApplication app( argc, argv );
const std::shared_ptr<ApplicationCore> core( createApplicationCore( startupTask ) );
Expand Down

0 comments on commit 1757a59

Please sign in to comment.