diff options
Diffstat (limited to 'kio/kfile/kurlcombobox.h')
-rw-r--r-- | kio/kfile/kurlcombobox.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/kio/kfile/kurlcombobox.h b/kio/kfile/kurlcombobox.h index 7485bfed9..d65cd91f5 100644 --- a/kio/kfile/kurlcombobox.h +++ b/kio/kfile/kurlcombobox.h @@ -19,11 +19,11 @@ #ifndef KURLCOMBOBOX_H #define KURLCOMBOBOX_H -#include <qevent.h> -#include <qptrlist.h> -#include <qmap.h> -#include <qpixmap.h> -#include <qstringlist.h> +#include <tqevent.h> +#include <tqptrlist.h> +#include <tqmap.h> +#include <tqpixmap.h> +#include <tqstringlist.h> #include <kcombobox.h> #include <kurl.h> @@ -41,7 +41,7 @@ class KIO_EXPORT KURLComboBox : public KComboBox { Q_OBJECT - Q_PROPERTY(QStringList urls READ urls WRITE setURLs DESIGNABLE true) + Q_PROPERTY(TQStringList urls READ urls WRITE setURLs DESIGNABLE true) Q_PROPERTY(int maxItems READ maxItems WRITE setMaxItems DESIGNABLE true) public: @@ -73,8 +73,8 @@ public: * @param parent The parent object of this widget. * @param name The name of this widget. */ - KURLComboBox( Mode mode, QWidget *parent=0, const char *name=0 ); - KURLComboBox( Mode mode, bool rw, QWidget *parent=0, const char *name=0 ); + KURLComboBox( Mode mode, TQWidget *parent=0, const char *name=0 ); + KURLComboBox( Mode mode, bool rw, TQWidget *parent=0, const char *name=0 ); /** * Destructs the combo box. */ @@ -101,7 +101,7 @@ public: * If the list of urls contains more items than maxItems, the first items * will be stripped. */ - void setURLs( QStringList urls ); + void setURLs( TQStringList urls ); /** * Inserts @p urls into the combobox below the "default urls" (see @@ -110,7 +110,7 @@ public: * If the list of urls contains more items than maxItems, the @p remove * parameter determines whether the first or last items will be stripped. */ - void setURLs( QStringList urls, OverLoadResolving remove ); + void setURLs( TQStringList urls, OverLoadResolving remove ); /** * @returns a list of all urls currently handled. The list contains at most @@ -122,7 +122,7 @@ public: * You will always get fully qualified urls, i.e. with protocol like * file:/ */ - QStringList urls() const; + TQStringList urls() const; /** * Sets how many items should be handled and displayed by the combobox. @@ -144,7 +144,7 @@ public: * the pixmap parameter. * Default URLs will be inserted into the combobox by setDefaults() */ - void addDefaultURL( const KURL& url, const QString& text = QString::null ); + void addDefaultURL( const KURL& url, const TQString& text = TQString::null ); /** * Adds a url that will always be shown in the combobox, it can't be @@ -154,8 +154,8 @@ public: * the pixmap parameter. * Default URLs will be inserted into the combobox by setDefaults() */ - void addDefaultURL( const KURL& url, const QPixmap& pix, - const QString& text = QString::null ); + void addDefaultURL( const KURL& url, const TQPixmap& pix, + const TQString& text = TQString::null ); /** * Clears all items and inserts the default urls into the combo. Will be @@ -185,14 +185,14 @@ protected slots: protected: struct _KURLComboItem { - QString text; + TQString text; KURL url; - QPixmap pixmap; + TQPixmap pixmap; }; typedef _KURLComboItem KURLComboItem; - QPtrList<KURLComboItem> itemList; - QPtrList<KURLComboItem> defaultList; - QMap<int,const KURLComboItem*> itemMapper; + TQPtrList<KURLComboItem> itemList; + TQPtrList<KURLComboItem> defaultList; + TQMap<int,const KURLComboItem*> itemMapper; void init( Mode mode ); void insertURLItem( const KURLComboItem * ); @@ -201,16 +201,16 @@ protected: * Uses KMimeType::pixmapForURL() to return a proper pixmap for @p url. * In directory mode, a folder icon is always returned. */ - QPixmap getPixmap( const KURL& url ) const; + TQPixmap getPixmap( const KURL& url ) const; /** * Updates @p item with @p pixmap and sets the url instead of the text * of the KURLComboItem. * Also works around a Qt bug. */ - void updateItem( const KURLComboItem *item, int index, const QPixmap& pix); + void updateItem( const KURLComboItem *item, int index, const TQPixmap& pix); - QPixmap opendirPix; + TQPixmap opendirPix; int firstItemIndex; |