summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/ios
diff options
context:
space:
mode:
authorThorbjørn Lund Martsum <tmartsum@gmail.com>2017-11-21 08:46:57 +0100
committerThorbjørn Lund Martsum <tmartsum@gmail.com>2017-11-29 07:31:45 +0000
commitfb880bbdff7b4ff3ef1a3451d868ce595a14c29f (patch)
treed8ece6877e1dd1cc3065777e30f6754b16ee3487 /src/plugins/platforms/ios
parent203fb838038d4c6c33d9e6ed3a45600c6e064e5a (diff)
QMenu: Corner case size fix (high DPI + multi screen)
We always need to set the QMenu screen explicit also when it is about to be shown on the primary screen. The reason is QWidget::metric (called from style/sizeHint) may use qApp->devicePixelRatioF() when it does not know about the topLevelWindow. That may not be the same value as DPR on primary screen. It can be argued that it likely is a bug in QWidget::metric, but fixing that looks to be a somewhat dangerous behavior change. Task-number: QTBUG-59794 Change-Id: I6ed0e808aa31bee5b77c0e19ce61a77548fdbb38 Reviewed-by: Morten Kristensen <msk@nullpointer.dk> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
Diffstat (limited to 'src/plugins/platforms/ios')
0 files changed, 0 insertions, 0 deletions