]> git.pld-linux.org Git - packages/qt4.git/blame - 0209-prevent-qt-mixing.diff
- rel 3; translations are back
[packages/qt4.git] / 0209-prevent-qt-mixing.diff
CommitLineData
0e17aedd
AM
1qt-bugs@ issue : none
2Trolltech task ID : none
3bugs.kde.org number : none
4applied: yes
5author: Lubos Lunak <l.lunak@kde.org>
6
7This patch changes QObjectPrivateVersion, thus preventing mixing
8parts of upstream Qt and qt-copy. In general it is a bad idea to mix
9e.g. libQtCore from one build and libQtGui from another one, and other
10qt-copy patches could make changes in Qt internal structures that could
11cause problems when mixed with upstream Qt.
12
13This patch does not make qt-copy binary incompatible with upstream Qt.
14It 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 {
This page took 0.034625 seconds and 4 git commands to generate.