]>
Commit | Line | Data |
---|---|---|
0e17aedd AM |
1 | qt-bugs@ issue : none |
2 | Trolltech task ID : none | |
3 | bugs.kde.org number : none | |
4 | applied: yes | |
5 | author: Lubos Lunak <l.lunak@kde.org> | |
6 | ||
7 | This patch changes QObjectPrivateVersion, thus preventing mixing | |
8 | parts of upstream Qt and qt-copy. In general it is a bad idea to mix | |
9 | e.g. libQtCore from one build and libQtGui from another one, and other | |
10 | qt-copy patches could make changes in Qt internal structures that could | |
11 | cause problems when mixed with upstream Qt. | |
12 | ||
13 | This patch does not make qt-copy binary incompatible with upstream Qt. | |
14 | It only further enforces using the same sources for the whole Qt build. | |
15 | ||
16 | --- src/corelib/kernel/qobject_p.h.sav 2008-01-29 19:37:26.000000000 +0100 | |
17 | +++ src/corelib/kernel/qobject_p.h 2008-01-30 14:08:15.000000000 +0100 | |
18 | @@ -75,7 +75,9 @@ extern QSignalSpyCallbackSet Q_CORE_EXPO | |
19 | ||
20 | inline QObjectData::~QObjectData() {} | |
21 | ||
22 | -enum { QObjectPrivateVersion = QT_VERSION }; | |
23 | +// add 0x1000000 to mark it as qt-copy version, with possible modifications | |
24 | +// in some Q*Private class | |
25 | +enum { QObjectPrivateVersion = QT_VERSION + 0x1000000 }; | |
26 | ||
27 | class Q_CORE_EXPORT QObjectPrivate : public QObjectData | |
28 | { |