Skip to content

Commit

Permalink
Generall use HiDPI pixmaps, autodetect pixel ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelSchneid3r committed Nov 16, 2017
1 parent f05b708 commit 61af4da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/albertcore/src/core/albert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ int Core::AlbertApp::run(int argc, char **argv) {
qInstallMessageHandler(myMessageOutput);

qDebug() << "Initializing application";
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
app = new QApplication(argc, argv);
app->setApplicationName("albert");
app->setApplicationDisplayName("Albert");
Expand Down

0 comments on commit 61af4da

Please sign in to comment.