Skip to content

Commit

Permalink
fmk - putting dpi scaling back in to main and have to use chop for qt…
Browse files Browse the repository at this point in the history
…5.9.3
  • Loading branch information
fmckenna committed Oct 26, 2018
1 parent d5e86a1 commit 86955ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion RemoteApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ RemoteApplication::RemoteApplication(QString name, RemoteService *theService, QW
: Application(parent), theRemoteService(theService)
{
workflowScriptName = name;
shortDirName = name.chopped(3); // remove .py
shortDirName = workflowScriptName;
//shortDirName = name.chopped(3); // remove .py
shortDirName.chop(3);

QGridLayout *layout = new QGridLayout();
QLabel *nameLabel = new QLabel();
Expand Down
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ int main(int argc, char *argv[])
qInstallMessageHandler(customMessageOutput);

// window scaling for mac
// QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);

QApplication a(argc, argv);

Expand Down

0 comments on commit 86955ce

Please sign in to comment.