summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2018-01-14 09:34:56 +0100
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2018-01-16 18:53:38 +0000
commit0aecac1dcfd4b8e353e2fc0b0ad06d77b4b125d6 (patch)
tree897b0967f030e350059fee05090f97be8bb9a44a /tests/auto/corelib/io
parentea7a9d694b8548f39d4e66684793ad17be837a66 (diff)
QItemDelegate::doLayout: only call QStyle::pixelMetric() once
QStyle::pixelMetric(QStyle::PM_FocusFrameHMargin) was called three times in the worst case but it returns a constant value. Therefore cache this value and call pixelMetric() only once. Since this code is duplicated from QCommonStylePrivate::viewItemLayout() also change it there. Change-Id: I6d5f0a8d2b1373bd36f0520f404e6a3cb0794f12 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com>
Diffstat (limited to 'tests/auto/corelib/io')
0 files changed, 0 insertions, 0 deletions