summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel
diff options
context:
space:
mode:
authorOlivier Goffart <olivier.goffart@nokia.com>2011-03-29 09:01:48 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2011-03-31 14:32:45 (GMT)
commita1a141e4af6226dca9ae67c51dd5e14cb3393772 (patch)
tree6b4ba52827c25f6bd06ea5b2b7b067968c634cc9 /src/corelib/kernel
parentbc3491c1b85ca36486c9472ecf7ba82f46699e8a (diff)
downloadQt-a1a141e4af6226dca9ae67c51dd5e14cb3393772.zip
Qt-a1a141e4af6226dca9ae67c51dd5e14cb3393772.tar.gz
Qt-a1a141e4af6226dca9ae67c51dd5e14cb3393772.tar.bz2
moc: be able to compile if there are private classes
Reviewed-by: brad Reviewed-by: thiago
Diffstat (limited to 'src/corelib/kernel')
-rw-r--r--src/corelib/kernel/qobjectdefs.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/corelib/kernel/qobjectdefs.h b/src/corelib/kernel/qobjectdefs.h
index 6bf40f7..4384837 100644
--- a/src/corelib/kernel/qobjectdefs.h
+++ b/src/corelib/kernel/qobjectdefs.h
@@ -163,8 +163,10 @@ public: \
virtual void *qt_metacast(const char *); \
QT_TR_FUNCTIONS \
virtual int qt_metacall(QMetaObject::Call, int, void **); \
- static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); \
-private:
+private: \
+ Q_DECL_HIDDEN static const QMetaObjectExtraData staticMetaObjectExtraData; \
+ Q_DECL_HIDDEN static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **);
+
/* tmake ignore Q_OBJECT */
#define Q_OBJECT_FAKE Q_OBJECT
/* tmake ignore Q_GADGET */
@@ -480,8 +482,10 @@ struct QMetaObjectExtraData
#else
const QMetaObject **objects;
#endif
- void (*static_metacall)(QObject *, QMetaObject::Call, int, void **); //from revision 6
- //int (*static_metacall)(QMetaObject::Call, int, void **); //used from revison 2 until revison 5
+
+ typedef void (*StaticMetacallFunction)(QObject *, QMetaObject::Call, int, void **); //from revision 6
+ //typedef int (*StaticMetaCall)(QMetaObject::Call, int, void **); //used from revison 2 until revison 5
+ StaticMetacallFunction static_metacall;
};
inline const char *QMetaObject::className() const