summaryrefslogtreecommitdiffstats
path: root/tests/auto/other/toolsupport/tst_toolsupport.cpp
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2015-08-31 08:48:49 +0200
committerhjk <hjk@theqtcompany.com>2015-09-03 15:18:36 +0000
commit7b0e771ad7bb8508997b451d1709ba8abd11b9eb (patch)
tree4298f8570e9b0d5f3e54711c78f35fc9430b59fc /tests/auto/other/toolsupport/tst_toolsupport.cpp
parent51e501fa8d11277fef35da4d81d9cdd2d9657d21 (diff)
Add a qtHookData field for Qt Creator's data display
Qt Creator needs to be able to determine structure sizes and data member offsets for certain private types even in the absence of debug information. It is sufficient to keep and test the actual data sets on the Qt Creator side, as long library provides a hint which data set is needed. So far, HookDataVersion was meant to be used for that purpose. To make it more explicit, this patch introduce a TypeInformationVersion field in qtHookData. Change-Id: Ia1c3c6f62f314d63c4df289ef456f047c5e84cf4 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/other/toolsupport/tst_toolsupport.cpp')
-rw-r--r--tests/auto/other/toolsupport/tst_toolsupport.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/other/toolsupport/tst_toolsupport.cpp b/tests/auto/other/toolsupport/tst_toolsupport.cpp
index bbd787bf38..a5b85ef221 100644
--- a/tests/auto/other/toolsupport/tst_toolsupport.cpp
+++ b/tests/auto/other/toolsupport/tst_toolsupport.cpp
@@ -29,6 +29,16 @@
#include <QtTest>
+//
+// Note:
+//
+// When this test here fails and the change leading to the failure
+// intentionally changed a private class, adjust the test here and bump
+// the TypeInformationVersion field in src/corelib/global/qhooks.cpp
+// in the same commit as the modification to the private class.
+//
+
+
// Don't do this at home. This is test code, not production.
#define protected public
#define private public