diff --git a/ChangeLog b/ChangeLog index 77ee9d6..51e4ebe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1863,7 +1863,7 @@ Changes related to TQt v3.1.1. Made TQtopia v1.5.0 the baseline version. Added the AppLnk, AppLnkSet, Config, DateFormat, DocLnk, DocLnkSet, FileManager, FileSelector, FileSelectorItem, FontDatabase, Global, MenuButton, -TQDawg, TQList, TQList and Resource TQtopia classes. +TQDawg, TQPtrList, TQPtrList and Resource TQtopia classes. Added TQArray for TQt 1.x and TQt 2.x. @@ -2737,7 +2737,7 @@ Added the missing tqInitNetworkProtocols() function to the qtnetwork module. Added the missing TQRect.contains() variant. Changed TQByteArray, TQCString and TQString %ConvertToTypeCode to convert None objects to empty instances. -Changed TQFileInfoList, TQKeySequence, TQList, TQMemArray, +Changed TQFileInfoList, TQKeySequence, TQPtrList, TQMemArray, TQObjectList, TQPair, TQPtrList, TQPtrList, TQStrList, TQValueList, TQValueList and TQWidgetList %ConvertToTypeCode to handle None objects. @@ -2880,10 +2880,10 @@ TQIconViewItem.dropped(), TQNetworkProtocol.newChildren(), TQPrintDialog.addButton(), TQProgressDialog.forceShow(), TQUrlOperator.newChildren() and TQUrlOperator.startNextCopy() methods. Added the missing TQIconDrag and TQIconDragItem classes. -Implemented TQList, TQPtrList, +Implemented TQPtrList, TQPtrList, TQValueList and TQValueList. Added the missing TransferThis to the TQPrintDialog ctor. -Moved the TQList<> and TQPtrList<> templates to their own files. +Moved the TQPtrList<> and TQPtrList<> templates to their own files. 2001/09/21 00:32:29 phil @@ -2985,7 +2985,7 @@ TQMimeSourceFactory.filePath(), TQMimeSourceFactory.addFilePath() and TQPalette.inactive() methods. Added the missing TQString.append() and TQString.prepend() variants. Renamed TQTime.IsValidTime() to TQTime.isValidTime(). -Made TQList a mapped type now that SIP can handle mapped templates. +Made TQPtrList a mapped type now that SIP can handle mapped templates. 2001/08/10 18:03:56 phil diff --git a/NEWS b/NEWS index 5f695ed..122e1af 100644 --- a/NEWS +++ b/NEWS @@ -190,7 +190,7 @@ v3.5 11th December 2002 - The SQL examples now support PostgreSQL as well as MySQL. - Added the TQtopia v1.5.0 AppLnk, AppLnkSet, Config, DateFormat, DocLnk, DocLnkSet, FileManager, FileSelector, FileSelectorItem, FontDatabase, - Global, MenuButton, TQDawg, TQList, TQList and Resource + Global, MenuButton, TQDawg, TQPtrList, TQPtrList and Resource classes. v3.4 10th September 2002 diff --git a/doc/PyQt.html b/doc/PyQt.html index c004474..5c3cf29 100644 --- a/doc/PyQt.html +++ b/doc/PyQt.html @@ -5145,12 +5145,12 @@ CLASS="SECT2" CLASS="SECT2" >TQList<type> (TQt v2)TQPtrList<type> (TQt v2)

Types based on the TQListTQPtrList template are automatically converted to and from Python lists of the type.

TQList<TQToolBar> toolBarsTQPtrList<TQToolBar> toolBars(ToolBarDock dock);

TQList<TQTab> tabListTQPtrList<TQTab> tabList();

TQPixmapArray(TQList<TQPixmap> pixmaps, TQList<TQPoint> hotspots);

(TQPtrList<TQPixmap> pixmaps, TQPtrList<TQPoint> hotspots);

-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. @@ -2768,7 +2768,7 @@ result, dock, index, - TQList<TQToolBar> toolBars + TQPtrList<TQToolBar> toolBars ToolBarDock dock @@ -3997,7 +3997,7 @@ This takes only the t parameter and returns a tuple of the TQTabBar - TQList<TQTab> tabList + TQPtrList<TQTab> tabList @@ -4789,8 +4789,8 @@ the return type of a function or the type of an argument, a Python list of TQCanvasPixmapArray (TQt v2.2+) TQPixmapArray - TQList<TQPixmap> pixmaps - TQList<TQPoint> hotspots + TQPtrList<TQPixmap> pixmaps + TQPtrList<TQPoint> hotspots The pixmaps argument is a Python list of TQPixmap instances, 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 &); 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 TQCanvasPixmapArray (TQt v2.2+) TQPixmapArray - TQList<TQPixmap> pixmaps - TQList<TQPoint> hotspots + TQPtrList<TQPixmap> pixmaps + TQPtrList<TQPoint> hotspots The pixmaps 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 &children() const; + const TQPtrList &children() const; void detachChildren(); private: @@ -146,7 +146,7 @@ public: DocLnkSet(); DocLnkSet(const TQString &,const TQString & = TQString::null); - const TQList &children() const; + const TQPtrList &children() const; void appendFrom(DocLnkSet &);