summaryrefslogtreecommitdiffstats
path: root/kommander/widgets/treewidget.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
commitdc6b8e72fed2586239e3514819238c520636c9d9 (patch)
tree88b200df0a0b7fab9d6f147596173556f1ed9a13 /kommander/widgets/treewidget.h
parent6927d4436e54551917f600b706a8d6109e49de1c (diff)
downloadtdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz
tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kommander/widgets/treewidget.h')
-rw-r--r--kommander/widgets/treewidget.h66
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