Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added option for High DPI displays to enable and disable scaling #6274

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

yjeanrenaud
Copy link

#5373
So I added a checkbox to the settings and the corresponding code to handle that Qt function

Signed-off-by: Yves Jeanrenaud [email protected]

to enable and disable scaling functionality on High DPI displays

Signed-off-by: Yves Jeanrenaud <[email protected]>
Signed-off-by: Yves Jeanrenaud <[email protected]>
Signed-off-by: Yves Jeanrenaud <[email protected]>
Signed-off-by: Yves Jeanrenaud <[email protected]>
Copy link
Collaborator

@claucambra claucambra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of comments :)

Comment on lines +250 to +252
false
#endif
;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
false
#endif
;
false;
#endif

#else
QOperatingSystemVersion::current() >= QOperatingSystemVersion::Windows10;
#endif
//TODO need to check for platform windows:dpiawareness
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please implement this TODO

#ifdef Q_OS_WIN
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
#endif // !Q_OS_WIN
if(_configFile->scaleForHighDPIDisplay->scale == true) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if(_configFile->scaleForHighDPIDisplay->scale == true) {
if (_configFile->scaleForHighDPIDisplay->scale) {

@claucambra
Copy link
Collaborator

Could you also add a screenshot of the settings window with your changes?

@alphasixtyfive
Copy link

Would love to see it merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants