diff options
Diffstat (limited to 'sip/tdecore/kconfig.sip')
-rw-r--r-- | sip/tdecore/kconfig.sip | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/sip/tdecore/kconfig.sip b/sip/tdecore/kconfig.sip index ed09152..1458aa6 100644 --- a/sip/tdecore/kconfig.sip +++ b/sip/tdecore/kconfig.sip @@ -32,25 +32,25 @@ class KConfig : KConfigBase public: - KConfig (const QString& = QString ::null , bool = 0, bool = 1, const char* = "config"); + KConfig (const TQString& = TQString ::null , bool = 0, bool = 1, const char* = "config"); %If ( KDE_3_2_0 - ) KConfig (KConfigBackEnd*, bool = 0); %End virtual void rollback (bool = 1); - virtual QStringList groupList () const; - virtual QMap<QString,QString> entryMap (const QString&) const; + virtual TQStringList groupList () const; + virtual TQMap<TQString,TQString> entryMap (const TQString&) const; virtual void reparseConfiguration (); void setFileWriteMode (int); void setForceGlobal (bool); bool forceGlobal () const; %If ( KDE_3_1_0 - ) - void checkUpdate (const QString&, const QString&); + void checkUpdate (const TQString&, const TQString&); %If ( KDE_3_2_0 - ) - KConfig* copyTo (const QString&, KConfig* = 0) const; + KConfig* copyTo (const TQString&, KConfig* = 0) const; %If ( KDE_3_3_0 - ) KLockFile::Ptr lockFile (bool = 0); @@ -62,8 +62,8 @@ public: protected: - virtual bool internalHasGroup (const QCString&) const; - virtual KEntryMap internalEntryMap (const QString&) const; + virtual bool internalHasGroup (const TQCString&) const; + virtual KEntryMap internalEntryMap (const TQString&) const; virtual KEntryMap internalEntryMap () const; virtual void putData (const KEntryKey&, const KEntry&, bool = 1); virtual KEntry lookupData (const KEntryKey&) const; @@ -90,10 +90,10 @@ public: //ig typedef KSharedPtr<KSharedConfig> Ptr; public: - static KSharedConfig::Ptr openConfig (const QString&, bool = 0, bool = 1); + static KSharedConfig::Ptr openConfig (const TQString&, bool = 0, bool = 1); private: - KSharedConfig (const QString&, bool, bool); + KSharedConfig (const TQString&, bool, bool); ~KSharedConfig (); }; // class KSharedConfig @@ -102,8 +102,8 @@ private: -%MappedType QMap<QString,QString> -//converts a Python dict of QString:QString +%MappedType TQMap<TQString,TQString> +//converts a Python dict of TQString:TQString { %TypeHeaderCode #include <qmap.h> @@ -124,17 +124,17 @@ private: // Get it. - const QMap<QString,QString> cppmap = *sipCpp; - QMap<QString,QString>::ConstIterator it; + const TQMap<TQString,TQString> cppmap = *sipCpp; + TQMap<TQString,TQString>::ConstIterator it; for (it = cppmap.begin (); it != cppmap.end (); ++it) { - QString acpp = it.key (); - QString bcpp = it.data (); + TQString acpp = it.key (); + TQString bcpp = it.data (); PyObject *ainst; PyObject *binst = NULL; - if (((ainst = sipConvertFromNewType(new QString(acpp), sipType_QString, sipTransferObj)) == NULL) - || ((binst = sipConvertFromNewType(new QString(bcpp), sipType_QString, sipTransferObj)) == NULL) + if (((ainst = sipConvertFromNewType(new TQString(acpp), sipType_QString, sipTransferObj)) == NULL) + || ((binst = sipConvertFromNewType(new TQString(bcpp), sipType_QString, sipTransferObj)) == NULL) || (PyDict_SetItem (dict, ainst, binst) < 0)) { Py_XDECREF (ainst); @@ -149,24 +149,24 @@ private: %ConvertToTypeCode - // Convert a Python dictionary to a QMap on the heap. + // Convert a Python dictionary to a TQMap on the heap. if (sipIsErr == NULL) return PyDict_Check(sipPy); - QMap<QString,QString> *cppmap = new QMap<QString,QString>; + TQMap<TQString,TQString> *cppmap = new TQMap<TQString,TQString>; PyObject *aelem, *belem; SIP_SSIZE_T pos = 0; - QString *acpp; - QString *bcpp; + TQString *acpp; + TQString *bcpp; while (PyDict_Next(sipPy, &pos, &aelem, &belem)) { int iserr = 0, acpp_state, bcpp_state; - acpp = (QString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); - bcpp = (QString *)sipForceConvertToType(belem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &bcpp_state, &iserr); + acpp = (TQString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); + bcpp = (TQString *)sipForceConvertToType(belem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &bcpp_state, &iserr); if (iserr) { |