diff options
author | BogDan Vatra <bogdan@kdab.com> | 2018-08-22 15:03:12 +0300 |
---|---|---|
committer | BogDan Vatra <bogdan@kdab.com> | 2018-08-30 05:11:38 +0000 |
commit | c2165f891c1a4380fdbf3bbf7af4696dc863cb99 (patch) | |
tree | 1b67a13f8adc2607328ebaa7736099c5fab84a6d /tests/auto/corelib/kernel/qmetatype/qmetatype.pro | |
parent | d02f888417c144963c929512f5cb3a0178af9fb4 (diff) |
Allow registering constructor for a set of dynamic types
This feature is needed to register complex types (e.g. Q_GADGETS) at
runtime, using a single constructor method and added type parameter.
Without having the type id available to the Constructor it is impossible
to specialize behavior, thus requiring separate constructors for each
type. Generating these separate constructors at compile time is easy,
but not at runtime.
[ChangeLog][QMetaType] QMetaType can now register constructor for a set
of dynamic types.
Change-Id: I6071271d0e157864594dd07b4bc3a0abbeb15a44
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/kernel/qmetatype/qmetatype.pro')
-rw-r--r-- | tests/auto/corelib/kernel/qmetatype/qmetatype.pro | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/corelib/kernel/qmetatype/qmetatype.pro b/tests/auto/corelib/kernel/qmetatype/qmetatype.pro index ad148ccc7f..d70befecfd 100644 --- a/tests/auto/corelib/kernel/qmetatype/qmetatype.pro +++ b/tests/auto/corelib/kernel/qmetatype/qmetatype.pro @@ -1,6 +1,6 @@ CONFIG += testcase TARGET = tst_qmetatype -QT = core testlib +QT = core-private testlib INCLUDEPATH += $$PWD/../../../other/qvariant_common SOURCES = tst_qmetatype.cpp TESTDATA=./typeFlags.bin |