summaryrefslogtreecommitdiffstats
path: root/examples/sql/sqlbrowser/browser.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-07-12 21:07:22 +0200
committerLars Knoll <lars.knoll@qt.io>2020-08-24 00:17:05 +0200
commitd1c3f81126863791df6bad2a38aa9c322e481388 (patch)
tree30ca2d6b64ed99fe943253ed0f4ae25390dd8f67 /examples/sql/sqlbrowser/browser.cpp
parent73fd7f2efcdb31e33febe840357a9d7b05e89165 (diff)
Add QVariant::Private::storage(), get() and typeId()
Adds convenient access to the data from the Private pointer. data() determines the storage location at run time, get() at compile time. internalStorage() can be used if we're accessing one of multiple types, but know that the type is stored internally. typeId() is an optimization as it allows retrieving the type id of the metatype without atomic refcounting operations (which type().id() would be doing). Change-Id: I39a508c530a1588053248607c8932e501fd474dc Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
Diffstat (limited to 'examples/sql/sqlbrowser/browser.cpp')
0 files changed, 0 insertions, 0 deletions