diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-10-17 23:25:46 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-10-17 23:25:46 +0900 |
commit | cdb2c767da66815beaddd0cbceda777ddcbe9b6a (patch) | |
tree | bc07eb30a833a9bbcb2ecbfe8632f9d82c53309b /sip | |
parent | 79113dda15348e659bdf729f2c6119b2ba49d397 (diff) | |
download | pytqt-cdb2c767da66815beaddd0cbceda777ddcbe9b6a.tar.gz pytqt-cdb2c767da66815beaddd0cbceda777ddcbe9b6a.zip |
Removed obsolete Qt2's TQList/TQListIterator classes and replaced
with TQt3's TQPtrList/TQPtrListIterator ones.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'sip')
-rw-r--r-- | sip/qt/qlist.sip | 10 | ||||
-rw-r--r-- | sip/qt/qmainwindow.sip | 4 | ||||
-rw-r--r-- | sip/qt/qtabbar.sip | 8 | ||||
-rw-r--r-- | sip/qt/qurloperator.sip | 4 | ||||
-rw-r--r-- | sip/qtcanvas/qcanvas.sip | 4 | ||||
-rw-r--r-- | sip/qtpe/qpeapplnk.sip | 4 |
6 files changed, 17 insertions, 17 deletions
diff --git a/sip/qt/qlist.sip b/sip/qt/qlist.sip index 8304d19..5c6ba26 100644 --- a/sip/qt/qlist.sip +++ b/sip/qt/qlist.sip @@ -1,4 +1,4 @@ -// This is the SIP interface definition for all types based on the TQList +// This is the SIP interface definition for all types based on the TQPtrList // template. // // Copyright (c) 2007 @@ -22,9 +22,9 @@ %ExportedDoc -<Sect2><Title>TQList<type> (TQt v2)</Title> +<Sect2><Title>TQPtrList<type> (TQt v2)</Title> <Para> -Types based on the <Literal>TQList</Literal> template are automatically +Types based on the <Literal>TQPtrList</Literal> template are automatically converted to and from Python lists of the type. </Para> </Sect2> @@ -34,7 +34,7 @@ converted to and from Python lists of the type. %If (TQt_2_1_0 - TQt_3_0_0) template<Type> -%MappedType TQList<Type> +%MappedType TQPtrList<Type> { %TypeHeaderCode #include <tqlist.h> @@ -85,7 +85,7 @@ template<Type> return 1; } - TQList<Type> *ql = new TQList<Type>; + TQPtrList<Type> *ql = new TQPtrList<Type>; for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) { diff --git a/sip/qt/qmainwindow.sip b/sip/qt/qmainwindow.sip index 4bdb3b3..ca21ec4 100644 --- a/sip/qt/qmainwindow.sip +++ b/sip/qt/qmainwindow.sip @@ -55,7 +55,7 @@ result, <Literal>dock</Literal>, <Literal>index</Literal>, </Para> <FuncSynopsis> - <FuncDef>TQList<TQToolBar> <Function>toolBars</Function></FuncDef> + <FuncDef>TQPtrList<TQToolBar> <Function>toolBars</Function></FuncDef> <ParamDef>ToolBarDock <Parameter>dock</Parameter></ParamDef> </FuncSynopsis> <Para> @@ -176,7 +176,7 @@ public: %End %If (TQt_2_1_0 - TQt_3_0_0) - TQList<TQToolBar> toolBars(ToolBarDock) const; + TQPtrList<TQToolBar> toolBars(ToolBarDock) const; %End %If (TQt_3_0_0 -) TQPtrList<TQDockWindow> dockWindows(Dock) const; diff --git a/sip/qt/qtabbar.sip b/sip/qt/qtabbar.sip index 96d77e0..09850e4 100644 --- a/sip/qt/qtabbar.sip +++ b/sip/qt/qtabbar.sip @@ -29,7 +29,7 @@ <Sect2><Title>TQTabBar</Title> <FuncSynopsis> - <FuncDef>TQList<TQTab> <Function>tabList</Function></FuncDef> + <FuncDef>TQPtrList<TQTab> <Function>tabList</Function></FuncDef> <ParamDef></ParamDef> </FuncSynopsis> <Para> @@ -220,13 +220,13 @@ protected: bool event(TQEvent *); %End - SIP_PYLIST tabList() [TQList<TQTab> *()]; + SIP_PYLIST tabList() [TQPtrList<TQTab> *()]; %MethodCode if ((sipRes = PyList_New(0)) == NULL) sipIsErr = 1; else { - TQList<TQTab> *tl; + TQPtrList<TQTab> *tl; TQTab *tab; Py_BEGIN_ALLOW_THREADS @@ -234,7 +234,7 @@ protected: Py_END_ALLOW_THREADS // Convert the list. - for (TQListIterator<TQTab> it(*tl); (tab = it.current()) != NULL; ++it) + for (TQPtrListIterator<TQTab> it(*tl); (tab = it.current()) != NULL; ++it) { PyObject *inst = sipBuildResult(&sipIsErr,"C",tab,sipClass_TQTab,NULL); diff --git a/sip/qt/qurloperator.sip b/sip/qt/qurloperator.sip index a078020..4dc3873 100644 --- a/sip/qt/qurloperator.sip +++ b/sip/qt/qurloperator.sip @@ -61,7 +61,7 @@ public: virtual const TQNetworkOperation *put(const TQByteArray &, const TQString & = TQString::null); %If (- TQt_3_0_0) - virtual TQList<TQNetworkOperation> copy(const TQString &,const TQString &, + virtual TQPtrList<TQNetworkOperation> copy(const TQString &,const TQString &, bool = 0); %End %If (TQt_3_0_0 -) @@ -89,7 +89,7 @@ signals: void data(const TQByteArray &,TQNetworkOperation *); void dataTransferProgress(int,int,TQNetworkOperation *); %If (- TQt_3_0_0) - void startedNextCopy(const TQList<TQNetworkOperation> &); + void startedNextCopy(const TQPtrList<TQNetworkOperation> &); %End %If (TQt_3_0_0 -) void startedNextCopy(const TQPtrList<TQNetworkOperation> &); diff --git a/sip/qtcanvas/qcanvas.sip b/sip/qtcanvas/qcanvas.sip index fb14a63..c005233 100644 --- a/sip/qtcanvas/qcanvas.sip +++ b/sip/qtcanvas/qcanvas.sip @@ -65,8 +65,8 @@ the return type of a function or the type of an argument, a Python list of <Sect2><Title>TQCanvasPixmapArray (TQt v2.2+)</Title> <FuncSynopsis> <FuncDef><Function>TQPixmapArray</Function></FuncDef> - <ParamDef>TQList<TQPixmap> <Parameter>pixmaps</Parameter></ParamDef> - <ParamDef>TQList<TQPoint> <Parameter>hotspots</Parameter></ParamDef> + <ParamDef>TQPtrList<TQPixmap> <Parameter>pixmaps</Parameter></ParamDef> + <ParamDef>TQPtrList<TQPoint> <Parameter>hotspots</Parameter></ParamDef> </FuncSynopsis> <Para> The <Literal>pixmaps</Literal> argument is a Python list of TQPixmap instances, diff --git a/sip/qtpe/qpeapplnk.sip b/sip/qtpe/qpeapplnk.sip index 7738f0c..0216bdd 100644 --- a/sip/qtpe/qpeapplnk.sip +++ b/sip/qtpe/qpeapplnk.sip @@ -128,7 +128,7 @@ public: void add(AppLnk *); bool remove(AppLnk *); - const TQList<AppLnk> &children() const; + const TQPtrList<AppLnk> &children() const; void detachChildren(); private: @@ -146,7 +146,7 @@ public: DocLnkSet(); DocLnkSet(const TQString &,const TQString & = TQString::null); - const TQList<DocLnk> &children() const; + const TQPtrList<DocLnk> &children() const; void appendFrom(DocLnkSet &); |