diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2014-05-18 03:43:04 +0300 |
---|---|---|
committer | Konstantin Ritt <ritt.ks@gmail.com> | 2014-07-08 08:58:34 +0200 |
commit | 0412ad35132e0de008d601912ded1f147014cab1 (patch) | |
tree | 4a424ac03fe85ff1ddc886f030285b673902c067 /src/widgets/dialogs/qcolordialog.cpp | |
parent | cdbd3c412c62a942aa19823420ffd58de99083b1 (diff) |
Decrease code duplication by reusing QTextEngine::findItem()
Use the findItem()'s optimized binary search impl instead of a generic one.
Also drop the "already shaped item" case since setBoundary() is only
called from itemize(), where the items are not shaped yet.
Change-Id: Ifbecdc41b2e3cb7791a7896fbb0cbea439ca0706
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/widgets/dialogs/qcolordialog.cpp')
0 files changed, 0 insertions, 0 deletions