From 203ba231d0276943aae36111f9ec1e949f3c6a4c Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 3 Dec 2011 22:23:44 -0600 Subject: Initial TQt conversion --- sip/kabc/key.sip | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'sip/kabc/key.sip') diff --git a/sip/kabc/key.sip b/sip/kabc/key.sip index 2321204..26bee15 100644 --- a/sip/kabc/key.sip +++ b/sip/kabc/key.sip @@ -36,8 +36,8 @@ class Key public: - typedef QValueList List; - typedef QValueList TypeList; + typedef TQValueList List; + typedef TQValueList TypeList; enum Types { @@ -46,27 +46,27 @@ public: Custom }; - Key (const QString& = QString ::null , int = PGP ); + Key (const TQString& = TQString ::null , int = PGP ); bool operator == (const KABC::Key&) const; bool operator != (const KABC::Key&) const; - void setId (const QString&); - QString id () const; - void setBinaryData (const QByteArray&); - QByteArray binaryData () const; - void setTextData (const QString&); - QString textData () const; + void setId (const TQString&); + TQString id () const; + void setBinaryData (const TQByteArray&); + TQByteArray binaryData () const; + void setTextData (const TQString&); + TQString textData () const; bool isBinary () const; void setType (int); - void setCustomTypeString (const QString&); + void setCustomTypeString (const TQString&); int type () const; - QString customTypeString () const; + TQString customTypeString () const; static TypeList typeList (); - static QString typeLabel (int); + static TQString typeLabel (int); }; // class Key -//igx QDataStream& operator << (QDataStream&, const KABC::Key&); -//igx QDataStream& operator >> (QDataStream&, KABC::Key&); +//igx TQDataStream& operator << (TQDataStream&, const KABC::Key&); +//igx TQDataStream& operator >> (TQDataStream&, KABC::Key&); }; // namespace KABC %End @@ -78,7 +78,7 @@ public: { %TypeHeaderCode #include -//typedef QValueList List; +//typedef TQValueList List; %End %ConvertFromTypeCode @@ -90,11 +90,11 @@ public: if ((pylist = PyList_New(0)) == NULL) return NULL; - QValueList *cpplist = (QValueList *)sipCpp; + TQValueList *cpplist = (TQValueList *)sipCpp; PyObject *inst; // Get it. - QValueList::Iterator it; + TQValueList::Iterator it; for( it = cpplist->begin(); it != cpplist->end(); ++it ) { if (((inst = sipConvertFromNewType(new KABC::Key(*it), sipType_KABC_Key, NULL)) == NULL) @@ -113,7 +113,7 @@ public: if (sipIsErr == NULL) return PyList_Check(sipPy); - QValueList *cpplist = new QValueList; + TQValueList *cpplist = new TQValueList; PyObject *elem; KABC::Key *cpp; -- cgit v1.2.1