summaryrefslogtreecommitdiffstats
path: root/src/widgets/graphicsview
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2014-04-03 09:22:24 +0200
committerMarc Mutz <marc.mutz@kdab.com>2016-01-29 06:16:17 +0000
commit587c183608f13dd77407bcbcc3012e7520ce9006 (patch)
tree3c6b8831eb0ff0fc943a0887aa6f346fc72c1597 /src/widgets/graphicsview
parentf2d1f3f1c7b9ab7e356b186d4187f46108d67b8c (diff)
QFontComboBox: optimize handling of icons for delegate
Instead of move-assigning a new QIcon to the default- constructed members, initialize them directly in the ctor-init-list. Do this for the other data member, too, for consistency. Also use QStringLiteral instead of QLatin1String as the argument to the QIcon ctor. This is correct, since the string will never be modified, and saves two memory allocations. Change-Id: I9398bbe9d0fd63db9b6cf856dd240ab334364518 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Diffstat (limited to 'src/widgets/graphicsview')
0 files changed, 0 insertions, 0 deletions