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/kresources/configdialog.sip | 4 ++-- sip/kresources/configwidget.sip | 4 ++-- sip/kresources/factory.sip | 14 +++++++------- sip/kresources/resource.sip | 20 ++++++++++---------- sip/kresources/selectdialog.sip | 10 +++++----- 5 files changed, 26 insertions(+), 26 deletions(-) (limited to 'sip/kresources') diff --git a/sip/kresources/configdialog.sip b/sip/kresources/configdialog.sip index 744e14b..d49cf85 100644 --- a/sip/kresources/configdialog.sip +++ b/sip/kresources/configdialog.sip @@ -36,13 +36,13 @@ class ConfigDialog : KDialogBase public: - ConfigDialog (QWidget*, const QString&, KRES::Resource*, const char* = 0); + ConfigDialog (TQWidget*, const TQString&, KRES::Resource*, const char* = 0); void setInEditMode (bool); protected slots: void accept (); void setReadOnly (bool); - void slotNameChanged (const QString&); + void slotNameChanged (const TQString&); }; // class ConfigDialog diff --git a/sip/kresources/configwidget.sip b/sip/kresources/configwidget.sip index 822fe5a..7a5f6f6 100644 --- a/sip/kresources/configwidget.sip +++ b/sip/kresources/configwidget.sip @@ -28,7 +28,7 @@ namespace KRES { -class ConfigWidget : QWidget +class ConfigWidget : TQWidget { %TypeHeaderCode #include @@ -36,7 +36,7 @@ class ConfigWidget : QWidget public: - ConfigWidget (QWidget* = 0, const char* = 0); + ConfigWidget (TQWidget* = 0, const char* = 0); virtual void setInEditMode (bool); public slots: diff --git a/sip/kresources/factory.sip b/sip/kresources/factory.sip index 8a35b79..b854414 100644 --- a/sip/kresources/factory.sip +++ b/sip/kresources/factory.sip @@ -36,15 +36,15 @@ class Factory public: - static KRES::Factory* self (const QString&); - KRES::ConfigWidget* configWidget (const QString&, QWidget* = 0); - KRES::Resource* resource (const QString&, const KConfig*); - QStringList typeNames () const; - QString typeName (const QString&) const; - QString typeDescription (const QString&) const; + static KRES::Factory* self (const TQString&); + KRES::ConfigWidget* configWidget (const TQString&, TQWidget* = 0); + KRES::Resource* resource (const TQString&, const KConfig*); + TQStringList typeNames () const; + TQString typeName (const TQString&) const; + TQString typeDescription (const TQString&) const; protected: - Factory (const QString&); + Factory (const TQString&); }; // class Factory diff --git a/sip/kresources/resource.sip b/sip/kresources/resource.sip index 3c044b7..c4a067f 100644 --- a/sip/kresources/resource.sip +++ b/sip/kresources/resource.sip @@ -28,7 +28,7 @@ namespace KRES { -class Resource : QObject +class Resource : TQObject { %TypeHeaderCode #include @@ -37,18 +37,18 @@ class Resource : QObject public: - typedef QValueList List; + typedef TQValueList List; Resource (const KConfig*); virtual void writeConfig (KConfig*); bool open (); void close (); bool isOpen () const; - QString identifier () const; - QString type () const; + TQString identifier () const; + TQString type () const; virtual void setReadOnly (bool); virtual bool readOnly () const; - virtual void setResourceName (const QString&); - virtual QString resourceName () const; + virtual void setResourceName (const TQString&); + virtual TQString resourceName () const; void setActive (bool); bool isActive () const; virtual void dump () const; @@ -56,8 +56,8 @@ public: protected: virtual bool doOpen (); virtual void doClose (); - void setIdentifier (const QString&); - void setType (const QString&); + void setIdentifier (const TQString&); + void setType (const TQString&); }; // class Resource @@ -71,10 +71,10 @@ class PluginFactoryBase : KLibFactory public: virtual KRES::Resource* resource (const KConfig*) = 0; - virtual KRES::ConfigWidget* configWidget (QWidget*) = 0; + virtual KRES::ConfigWidget* configWidget (TQWidget*) = 0; protected: - virtual QObject* createObject (QObject*, const char*, const char*, const QStringList&); + virtual TQObject* createObject (TQObject*, const char*, const char*, const TQStringList&); }; // class PluginFactoryBase diff --git a/sip/kresources/selectdialog.sip b/sip/kresources/selectdialog.sip index fff14f6..c0d8872 100644 --- a/sip/kresources/selectdialog.sip +++ b/sip/kresources/selectdialog.sip @@ -40,9 +40,9 @@ class SelectDialog public: - SelectDialog (QPtrList, QWidget* = 0, const char* = 0); + SelectDialog (TQPtrList, TQWidget* = 0, const char* = 0); KRES::Resource* resource (); - static KRES::Resource* getResource (QPtrList, QWidget* = 0); + static KRES::Resource* getResource (TQPtrList, TQWidget* = 0); //force private: @@ -58,7 +58,7 @@ private: %If (KDE_3_2_0 - ) -%MappedType QPtrList +%MappedType TQPtrList //converts a Python list of KRES::Resource { %TypeHeaderCode @@ -79,7 +79,7 @@ private: // Get it. - QPtrList *cpplist = (QPtrList *)sipCpp; + TQPtrList *cpplist = (TQPtrList *)sipCpp; KRES::Resource *cpp; PyObject *inst; @@ -101,7 +101,7 @@ private: if (sipIsErr == NULL) return PyList_Check(sipPy); - QPtrList *cpplist = new QPtrList; + TQPtrList *cpplist = new TQPtrList; PyObject *elem; KRES::Resource *cpp; -- cgit v1.2.1