aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/shapes
diff options
context:
space:
mode:
authorAxel Spoerl <axel.spoerl@qt.io>2024-04-25 07:24:23 +0200
committerAxel Spoerl <axel.spoerl@qt.io>2024-04-25 09:30:42 +0200
commit330fa93d6e9003c0ea188b9e703f2b3f0448f8c8 (patch)
tree3584bc9cd7eadc3150f155450b95e2bf1bac9903 /examples/quick/shapes
parent73bfb8a5de91ab79d43bc699f956d83d665fd0e0 (diff)
TableModelRow QML Type: Optimize data role stringsHEADdev
String accessors used for data roles in a TableModelRow were defined as static const QString members. supportedRoleNames() returned a hash, built on each call. String definitions corresponding to data roles were defined another time in this method. Define accessor strings as static constexpr QLatin1StringView. Use these members in supportedRoleNames(), instead of defining the same strings another time. Define the hash as static const, instead of building it on each call. Pick-to: 6.7 6.6 Change-Id: I38752fda85e54b0e9107c31ec8f32c6886b97b90 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'examples/quick/shapes')
0 files changed, 0 insertions, 0 deletions