diff options
author | Jędrzej Nowacki <jedrzej.nowacki@digia.com> | 2012-09-21 13:45:07 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-09-27 02:37:19 +0200 |
commit | 60d096ff6d24a77f1c156c8354232a44e8516872 (patch) | |
tree | acb952d2f87fae34b8f232d1c59fb840c3681286 /tests/auto/other | |
parent | b5b8fdb915e7d57128b807f5640f418c2fd7cc85 (diff) |
QMetaType build fix with Q_NO_CURSOR and friends.
QMetaType has a way to "switch off" some types from the build.
QtMetaTypePrivate::TypeDefinition<T>::IsAvailable is defined as false
for all unaccessible types. Sadly that information was never used by
gui and widget handlers. The patch implements it.
Change-Id: Ie5835be4c88cfbbca8a4e9199e31ddfc20cae190
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Jing Bai <jing.bai@digia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/other')
-rw-r--r-- | tests/auto/other/compiler/tst_compiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/other/compiler/tst_compiler.cpp b/tests/auto/other/compiler/tst_compiler.cpp index 1f0914f936..8d15816c36 100644 --- a/tests/auto/other/compiler/tst_compiler.cpp +++ b/tests/auto/other/compiler/tst_compiler.cpp @@ -268,7 +268,7 @@ namespace QtTestInternal struct Getter { static QMetaType::SaveOperator saveOp() { - return ::qMetaTypeSaveHelper<T>; + return ::QtMetaTypePrivate::QMetaTypeFunctionHelper<T>::Save; } }; |