diff options
Diffstat (limited to 'kommander/widgets/treewidget.h')
-rw-r--r-- | kommander/widgets/treewidget.h | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/kommander/widgets/treewidget.h b/kommander/widgets/treewidget.h index 29d0a747..28da108e 100644 --- a/kommander/widgets/treewidget.h +++ b/kommander/widgets/treewidget.h @@ -21,9 +21,9 @@ #include <klistview.h> /* QT INCLUDES */ -#include <qstring.h> -#include <qstringlist.h> -#include <qptrvector.h> +#include <tqstring.h> +#include <tqstringlist.h> +#include <tqptrvector.h> /* OTHER INCLUDES */ #include <kommanderwidget.h> @@ -36,52 +36,52 @@ class KOMMANDER_EXPORT TreeWidget : public KListView, public KommanderWidget { Q_OBJECT - Q_PROPERTY(QString populationText READ populationText WRITE setPopulationText DESIGNABLE false) - Q_PROPERTY(QStringList associations READ associatedText WRITE setAssociatedText DESIGNABLE false) + Q_PROPERTY(TQString populationText READ populationText WRITE setPopulationText DESIGNABLE false) + Q_PROPERTY(TQStringList associations READ associatedText WRITE setAssociatedText DESIGNABLE false) Q_PROPERTY(bool KommanderWidget READ isKommanderWidget) - Q_PROPERTY(QString pathSeparator READ pathSeparator WRITE setPathSeparator) + Q_PROPERTY(TQString pathSeparator READ pathSeparator WRITE setPathSeparator) public: - TreeWidget(QWidget *a_parent, const char *a_name); + TreeWidget(TQWidget *a_parent, const char *a_name); ~TreeWidget(); - virtual void setCurrentItem(QListViewItem* item); - QString pathSeparator() const; - void setPathSeparator(const QString& a_pathSep); + virtual void setCurrentItem(TQListViewItem* item); + TQString pathSeparator() const; + void setPathSeparator(const TQString& a_pathSep); virtual bool isKommanderWidget() const; - virtual void setAssociatedText(const QStringList&); - virtual QStringList associatedText() const; - virtual QString currentState() const; - virtual QString populationText() const; - virtual void setPopulationText(const QString&); + virtual void setAssociatedText(const TQStringList&); + virtual TQStringList associatedText() const; + virtual TQString currentState() const; + virtual TQString populationText() const; + virtual void setPopulationText(const TQString&); - virtual QString handleDCOP(int function, const QStringList& args); + virtual TQString handleDCOP(int function, const TQStringList& args); virtual bool isFunctionSupported(int function); public slots: - virtual void setWidgetText(const QString&); + virtual void setWidgetText(const TQString&); virtual void populate(); signals: void widgetOpened(); - void widgetTextChanged(const QString&); + void widgetTextChanged(const TQString&); void contextMenuRequested(int xpos, int ypos); protected: - void showEvent(QShowEvent *e); - void contextMenuEvent( QContextMenuEvent * e ); - int itemToIndex(QListViewItem* item); - int itemToIndexSafe(QListViewItem* item); - QString itemText(QListViewItem* item) const; - QString itemsText(); - QListViewItem* indexToItem(int index); - QString itemPath(QListViewItem* item) const; + void showEvent(TQShowEvent *e); + void contextMenuEvent( TQContextMenuEvent * e ); + int itemToIndex(TQListViewItem* item); + int itemToIndexSafe(TQListViewItem* item); + TQString itemText(TQListViewItem* item) const; + TQString itemsText(); + TQListViewItem* indexToItem(int index); + TQString itemPath(TQListViewItem* item) const; private: - void addItemFromString(const QString& s); - QListViewItem* itemFromString(QListViewItem* parent, const QString& s); - QPtrVector<QListViewItem> m_lastPath; - QString m_pathSeparator; - int addColumnTree(const QString & label, int width = -1 ); + void addItemFromString(const TQString& s); + TQListViewItem* itemFromString(TQListViewItem* parent, const TQString& s); + TQPtrVector<TQListViewItem> m_lastPath; + TQString m_pathSeparator; + int addColumnTree(const TQString & label, int width = -1 ); void setSortCol(int column, bool ascending=true); - void setAltBackground(const QColor & c); - void setColAlign(int column, const QString& align); + void setAltBackground(const TQColor & c); + void setColAlign(int column, const TQString& align); }; #endif |