qt-bugs@ issue : none Trolltech task ID : none bugs.kde.org number : none applied: yes author: Lubos Lunak This patch changes QObjectPrivateVersion, thus preventing mixing parts of upstream Qt and qt-copy. In general it is a bad idea to mix e.g. libQtCore from one build and libQtGui from another one, and other qt-copy patches could make changes in Qt internal structures that could cause problems when mixed with upstream Qt. This patch does not make qt-copy binary incompatible with upstream Qt. It only further enforces using the same sources for the whole Qt build. --- a/src/corelib/kernel/qobject_p.h +++ b/src/corelib/kernel/qobject_p.h @@ -85,7 +85,9 @@ inline QObjectData::~QObjectData() {} -enum { QObjectPrivateVersion = QT_VERSION }; +// add 0x1000000 to mark it as qt-copy version, with possible modifications +// in some Q*Private class +enum { QObjectPrivateVersion = QT_VERSION + 0x1000000 }; class Q_CORE_EXPORT QObjectPrivate : public QObjectData {