Skip to content

Commit

Permalink
fmk - enabling DPI scaling in main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
fmckenna committed Sep 26, 2019
1 parent 4fe2dca commit c70a152
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "mainwindow.h"
#include <QApplication>
#include <QFile>
#include <QGuiApplication>

QString openStyleFiles()
{
Expand Down Expand Up @@ -40,6 +41,8 @@ QString openStyleFiles()

int main(int argc, char *argv[])
{
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);

QApplication app(argc, argv);
MainWindow w;
QApplication::setWindowIcon(QIcon(":/resources/NHERI-TInF-icon.icns"));
Expand Down

0 comments on commit c70a152

Please sign in to comment.