From cdb2c767da66815beaddd0cbceda777ddcbe9b6a Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 17 Oct 2018 23:25:46 +0900 Subject: Removed obsolete Qt2's TQList/TQListIterator classes and replaced with TQt3's TQPtrList/TQPtrListIterator ones. Signed-off-by: Michele Calgaro --- sip/qt/qlist.sip | 10 +++++----- sip/qt/qmainwindow.sip | 4 ++-- sip/qt/qtabbar.sip | 8 ++++---- sip/qt/qurloperator.sip | 4 ++-- 4 files changed, 13 insertions(+), 13 deletions(-) (limited to 'sip/qt') 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 -TQList<type> (TQt v2) +TQPtrList<type> (TQt v2) -Types based on the TQList template are automatically +Types based on the TQPtrList template are automatically converted to and from Python lists of the type. @@ -34,7 +34,7 @@ converted to and from Python lists of the type. %If (TQt_2_1_0 - TQt_3_0_0) template -%MappedType TQList +%MappedType TQPtrList { %TypeHeaderCode #include @@ -85,7 +85,7 @@ template return 1; } - TQList *ql = new TQList; + TQPtrList *ql = new TQPtrList; 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, dock, index, - TQList<TQToolBar> toolBars + TQPtrList<TQToolBar> toolBars ToolBarDock dock @@ -176,7 +176,7 @@ public: %End %If (TQt_2_1_0 - TQt_3_0_0) - TQList toolBars(ToolBarDock) const; + TQPtrList toolBars(ToolBarDock) const; %End %If (TQt_3_0_0 -) TQPtrList 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 @@ TQTabBar - TQList<TQTab> tabList + TQPtrList<TQTab> tabList @@ -220,13 +220,13 @@ protected: bool event(TQEvent *); %End - SIP_PYLIST tabList() [TQList *()]; + SIP_PYLIST tabList() [TQPtrList *()]; %MethodCode if ((sipRes = PyList_New(0)) == NULL) sipIsErr = 1; else { - TQList *tl; + TQPtrList *tl; TQTab *tab; Py_BEGIN_ALLOW_THREADS @@ -234,7 +234,7 @@ protected: Py_END_ALLOW_THREADS // Convert the list. - for (TQListIterator it(*tl); (tab = it.current()) != NULL; ++it) + for (TQPtrListIterator 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 copy(const TQString &,const TQString &, + virtual TQPtrList 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 &); + void startedNextCopy(const TQPtrList &); %End %If (TQt_3_0_0 -) void startedNextCopy(const TQPtrList &); -- cgit v1.2.1