updated on Sat Jan 21 20:03:50 UTC 2012
[aur-mirror.git] / qt3-trinity / qt3_3.3.8c.diff
blob148328603a3b113debd999237ef5b0dca081f65c
1 diff -ur qt3.orig/qt-x11-free-3.3.8-b/include/qobject.h qt3.new/qt-x11-free-3.3.8-b/include/qobject.h
2 --- qt3.orig/qt-x11-free-3.3.8-b/include/qobject.h 2008-01-15 13:09:13.000000000 -0600
3 +++ qt3.new/qt-x11-free-3.3.8-b/include/qobject.h 2011-01-01 18:33:19.715656496 -0600
4 @@ -101,8 +101,11 @@
6 QObject *child( const char *objName, const char *inheritsClass = 0, bool recursiveSearch = TRUE ); //### const in 4.0
7 const QObjectList *children() const { return childObjects; }
8 + QObjectList childrenListObject();
9 + const QObjectList childrenListObject() const;
11 static const QObjectList *objectTrees();
12 + static const QObjectList objectTreesListObject();
14 QObjectList *queryList( const char *inheritsClass = 0,
15 const char *objName = 0,
16 diff -ur qt3.orig/qt-x11-free-3.3.8-b/src/kernel/qobject.cpp qt3.new/qt-x11-free-3.3.8-b/src/kernel/qobject.cpp
17 --- qt3.orig/qt-x11-free-3.3.8-b/src/kernel/qobject.cpp 2008-01-15 13:09:13.000000000 -0600
18 +++ qt3.new/qt-x11-free-3.3.8-b/src/kernel/qobject.cpp 2011-01-01 18:28:16.191270264 -0600
19 @@ -360,6 +360,30 @@
23 +/*! \internal
24 + TQt compatibility function
25 +*/
26 +QObjectList QObject::childrenListObject() {
27 + if (children()) return *(children());
28 + else return QObjectList();
31 +/*! \internal
32 + TQt compatibility function
33 +*/
34 +const QObjectList QObject::childrenListObject() const {
35 + if (children()) return *(children());
36 + else return QObjectList();
39 +/*! \internal
40 + TQt compatibility function
41 +*/
42 +const QObjectList QObject::objectTreesListObject() {
43 + if (objectTrees()) return *(objectTrees());
44 + else return QObjectList();
48 /*****************************************************************************
49 QObject member functions
50 diff -ur qt3.orig/qt-x11-free-3.3.8-b/src/kernel/qobject.h qt3.new/qt-x11-free-3.3.8-b/src/kernel/qobject.h
51 --- qt3.orig/qt-x11-free-3.3.8-b/src/kernel/qobject.h 2008-01-15 13:09:13.000000000 -0600
52 +++ qt3.new/qt-x11-free-3.3.8-b/src/kernel/qobject.h 2011-01-01 18:33:19.715656496 -0600
53 @@ -101,8 +101,11 @@
55 QObject *child( const char *objName, const char *inheritsClass = 0, bool recursiveSearch = TRUE ); //### const in 4.0
56 const QObjectList *children() const { return childObjects; }
57 + QObjectList childrenListObject();
58 + const QObjectList childrenListObject() const;
60 static const QObjectList *objectTrees();
61 + static const QObjectList objectTreesListObject();
63 QObjectList *queryList( const char *inheritsClass = 0,
64 const char *objName = 0,