summaryrefslogtreecommitdiffstats
path: root/tests/auto/qobject/tst_qobject.pro
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-11-17 11:51:16 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-11-30 14:58:31 (GMT)
commitb881d8fb99972f1bd04ab4c84843cc8d43ddbeed (patch)
treef415bc8c76ecc388d05f940a02e2c863dc96f111 /tests/auto/qobject/tst_qobject.pro
parentf3ac20ac8100142cde0accfb72eab48590303c4a (diff)
downloadQt-b881d8fb99972f1bd04ab4c84843cc8d43ddbeed.zip
Qt-b881d8fb99972f1bd04ab4c84843cc8d43ddbeed.tar.gz
Qt-b881d8fb99972f1bd04ab4c84843cc8d43ddbeed.tar.bz2
Fix certain type-const-ref syntax not recognized by normalizedSignature()
Normally, const Type & is normalized to just Type, but this didn't work for Template<T>const& or Type*const& types. This now works as expected. However, this changes the way these types are normalized, and existing code using the old syntax will break. We can prevent this breakage by also normalizing the method signature in the metaobject when looking up signals and slots in QObject::connect(). I have added an autotest for this, which includes moc output generated by Qt 4.6's moc. This means we need to bump the metaobject revision number even though we are not adding any new data (only changing the normalized strings we store). Task-number: QTBUG-2407 Task-number: QTBUG-3722 Reviewed-by: ogoffart
Diffstat (limited to 'tests/auto/qobject/tst_qobject.pro')
-rw-r--r--tests/auto/qobject/tst_qobject.pro22
1 files changed, 13 insertions, 9 deletions
diff --git a/tests/auto/qobject/tst_qobject.pro b/tests/auto/qobject/tst_qobject.pro
index 003ee98..0200f3e 100644
--- a/tests/auto/qobject/tst_qobject.pro
+++ b/tests/auto/qobject/tst_qobject.pro
@@ -1,16 +1,20 @@
load(qttest_p4)
-SOURCES += tst_qobject.cpp
+SOURCES += tst_qobject.cpp
-QT = core network gui
-contains(QT_CONFIG, qt3support):DEFINES+=QT_HAS_QT3SUPPORT
+# this is here for a reason, moc_oldnormalizedobject.cpp is not auto-generated, it was generated by
+# moc from Qt 4.6, and should *not* be generated by the current moc
+SOURCES += moc_oldnormalizeobject.cpp
-wince*: {
- addFiles.sources = signalbug.exe
- addFiles.path = .
- DEPLOYMENT += addFiles
+QT = core \
+ network \
+ gui
+contains(QT_CONFIG, qt3support):DEFINES += QT_HAS_QT3SUPPORT
+wince*: {
+ addFiles.sources = signalbug.exe
+ addFiles.path = .
+ DEPLOYMENT += addFiles
}
-
-symbian: {
+symbian: {
addFiles.sources = signalbug.exe
addFiles.path = \sys\bin
DEPLOYMENT += addFiles