diff options
Diffstat (limited to 'sip/tdeui/kxmlguifactory.sip')
-rw-r--r-- | sip/tdeui/kxmlguifactory.sip | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sip/tdeui/kxmlguifactory.sip b/sip/tdeui/kxmlguifactory.sip index d9be213..af2cd5b 100644 --- a/sip/tdeui/kxmlguifactory.sip +++ b/sip/tdeui/kxmlguifactory.sip @@ -47,7 +47,7 @@ public: void addClient (KXMLGUIClient*); void removeClient (KXMLGUIClient*); - void plugActionList (KXMLGUIClient*, const TQString&, const TQPtrList<KAction>&); + void plugActionList (KXMLGUIClient*, const TQString&, const TQPtrList<TDEAction>&); void unplugActionList (KXMLGUIClient*, const TQString&); TQPtrList<KXMLGUIClient> clients () const; TQWidget* container (const TQString&, KXMLGUIClient*, bool = 0); @@ -72,10 +72,10 @@ protected: }; // class KXMLGUIFactory //force -TQPtrList<KAction> testKActionList (TQPtrList<KAction>); +TQPtrList<TDEAction> testTDEActionList (TQPtrList<TDEAction>); %MethodCode -//takes list | (TQPtrList<KAction>) -//returns (TQPtrList<KAction>) +//takes list | (TQPtrList<TDEAction>) +//returns (TQPtrList<TDEAction>) sipRes = a0; %End @@ -83,8 +83,8 @@ TQPtrList<KAction> testKActionList (TQPtrList<KAction>); //end -%MappedType TQPtrList<KAction> -//converts a Python list of KAction +%MappedType TQPtrList<TDEAction> +//converts a Python list of TDEAction { %TypeHeaderCode #include <tqptrlist.h> @@ -104,14 +104,14 @@ TQPtrList<KAction> testKActionList (TQPtrList<KAction>); // Get it. - TQPtrList<KAction> *cpplist = (TQPtrList<KAction> *)sipCpp; - KAction *cpp; + TQPtrList<TDEAction> *cpplist = (TQPtrList<TDEAction> *)sipCpp; + TDEAction *cpp; PyObject *inst; // the loop depends on the type of iterator the tmeplate makes available for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) { - if (((inst = sipConvertFromInstance (cpp, sipClass_KAction, sipTransferObj)) == NULL) + if (((inst = sipConvertFromInstance (cpp, sipClass_TDEAction, sipTransferObj)) == NULL) || PyList_Append (pylist, inst) < 0) { Py_DECREF (pylist); @@ -126,16 +126,16 @@ TQPtrList<KAction> testKActionList (TQPtrList<KAction>); if (sipIsErr == NULL) return PyList_Check(sipPy); - TQPtrList<KAction> *cpplist = new TQPtrList<KAction>; + TQPtrList<TDEAction> *cpplist = new TQPtrList<TDEAction>; PyObject *elem; - KAction *cpp; + TDEAction *cpp; int iserr = 0; for (int i = 0; i < PyList_Size (sipPy); i++) { elem = PyList_GET_ITEM (sipPy, i); - cpp = (KAction *)sipForceConvertToType(elem, sipType_KAction, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + cpp = (TDEAction *)sipForceConvertToType(elem, sipType_TDEAction, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); if (iserr) { |