Go to file
Christian Ehrlicher 0aecac1dcf 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>
2018-01-16 18:53:38 +00:00
bin Fix macOS shadow prefix builds using pre-synced source packages 2017-11-22 07:39:45 +00:00
config.tests Centralize the x86 SIMD testing in one place 2017-11-30 08:30:42 +00:00
dist Changelog edit: move the X11 entries from "Linux" to "X11" 2017-11-24 05:23:55 +00:00
doc Doc: update screenshot Character Map 2018-01-03 09:42:00 +00:00
examples Merge remote-tracking branch 'origin/5.10' into dev 2018-01-11 18:10:41 +01:00
lib
mkspecs Merge remote-tracking branch 'origin/5.10' into dev 2018-01-11 18:10:41 +01:00
qmake Merge remote-tracking branch 'origin/5.10' into dev 2018-01-11 18:10:41 +01:00
src QItemDelegate::doLayout: only call QStyle::pixelMetric() once 2018-01-16 18:53:38 +00:00
tests Don't generate QAction include unconditionally 2018-01-15 15:50:12 +00:00
util Update Text segmentation and line break data to Unicode 10.0 2018-01-03 07:47:26 +00:00
.gitattributes
.gitignore gitignore: don't ignore Info.plist templates for libraries 2017-11-23 07:07:48 +00:00
.qmake.conf Bump version 2017-12-20 12:05:48 +01:00
.tag
config_help.txt Merge remote-tracking branch 'origin/5.10' into dev 2018-01-02 09:58:44 +01:00
configure Remove references to obsolete platforms 2017-11-05 06:33:53 +00:00
configure.bat configure: Prefer cl.exe over clang-cl.exe 2018-01-04 21:22:42 +00:00
configure.json Merge remote-tracking branch 'origin/5.10' into dev 2018-01-02 09:58:44 +01:00
configure.pri Merge remote-tracking branch 'origin/5.10' into dev 2018-01-02 09:58:44 +01:00
header.BSD
header.COMM
header.FDL
header.GPL
header.GPL-EXCEPT
header.LGPL
header.LGPL3
header.LGPL3-COMM
header.LGPL-NOGPL2
header.LGPL-ONLY
INSTALL
LGPL_EXCEPTION.txt
LICENSE.FDL
LICENSE.GPL2
LICENSE.GPL3
LICENSE.GPL3-EXCEPT
LICENSE.GPLv3
LICENSE.LGPL3
LICENSE.LGPLv3
LICENSE.LGPLv21
LICENSE.PREVIEW.COMMERCIAL
qtbase.pro
sync.profile Add support for Windows UI Automation 2017-11-14 23:31:04 +00:00