It takes into account the dpi of the screen we're rendering to.
Other overloads assume the window is nullptr and will use the primary screen's dpi which can change almost randomly.
Details
Details
- Reviewers
davidedmundson - Group Reviewers
Plasma Frameworks - Commits
- R242:25ce2b90dab1: Prefer QIcon::pixmap(QWindow*, ...) overload
Icons still look fine even if I drag windows from a screen to another.
Diff Detail
Diff Detail
- Repository
- R242 Plasma Framework (Library)
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
Yeah, size is in logical pixels. Multiplying doesn't make sense.
I'm sure more high DPI bugs are caused by clients trying to be clever.