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

Divide the pixmap size with device pixel ratio for labels size #7850

Merged
merged 1 commit into from Sep 2, 2021

Conversation

adeas31
Copy link
Member

@adeas31 adeas31 commented Sep 2, 2021

Related Issues

#7768

Purpose

Handle big picture in parameters dialog.

Approach

Calculate the layout size from the pixmap size and device pixel ratio.
Use QLabel::setScaledContents(true) to automatically scale the pixmap.

Use QLabel::setScaledContents(true) to automatically scale the pixmap
Fixes OpenModelica#7768
@adeas31 adeas31 added the COMP/GUI/OMEdit Issue and pull request related to OMEdit label Sep 2, 2021
@adeas31 adeas31 self-assigned this Sep 2, 2021
@adeas31 adeas31 enabled auto-merge (squash) September 2, 2021 09:51
@adeas31 adeas31 merged commit e6b71af into OpenModelica:master Sep 2, 2021
@adeas31 adeas31 deleted the issue-7768 branch September 2, 2021 10:09
adeas31 added a commit to adeas31/OpenModelica that referenced this pull request Sep 16, 2021
…odelica#7850)

Use QLabel::setScaledContents(true) to automatically scale the pixmap
Fixes OpenModelica#7768
adeas31 added a commit that referenced this pull request Sep 16, 2021
Use QLabel::setScaledContents(true) to automatically scale the pixmap
Fixes #7768
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
COMP/GUI/OMEdit Issue and pull request related to OMEdit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant