diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
commit | 47c8a359c5276062c4bc17f0e82410f29081b502 (patch) | |
tree | 2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kdict/matchview.h | |
parent | 6f82532777a35e0e60bbd2b290b2e93e646f349b (diff) | |
download | tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdict/matchview.h')
-rw-r--r-- | kdict/matchview.h | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/kdict/matchview.h b/kdict/matchview.h index f619820e..7248c35c 100644 --- a/kdict/matchview.h +++ b/kdict/matchview.h @@ -17,7 +17,7 @@ #ifndef _MATCHVIEW_H_ #define _MATCHVIEW_H_ -#include <qlistview.h> +#include <tqlistview.h> class KPopupMenu; @@ -28,17 +28,17 @@ class MatchViewItem : public QListViewItem public: - MatchViewItem(QListView *view,const QString &text); - MatchViewItem(QListView *view,QListViewItem *after,const QString &text); - MatchViewItem(QListViewItem *item,const QString &text,const QString &commandStr); - MatchViewItem(QListViewItem *item,QListViewItem *after,const QString &text,const QString &commandStr); + MatchViewItem(TQListView *view,const TQString &text); + MatchViewItem(TQListView *view,TQListViewItem *after,const TQString &text); + MatchViewItem(TQListViewItem *item,const TQString &text,const TQString &commandStr); + MatchViewItem(TQListViewItem *item,TQListViewItem *after,const TQString &text,const TQString &commandStr); ~MatchViewItem(); void setOpen(bool o); - void paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment); + void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment); - QString command; - QStringList subEntrys; + TQString command; + TQStringList subEntrys; }; @@ -51,36 +51,36 @@ class MatchView : public QWidget public: - MatchView(QWidget *parent=0,const char *name=0); + MatchView(TQWidget *parent=0,const char *name=0); ~MatchView(); void updateStrategyCombo(); - bool selectStrategy(const QString &strategy) const; - void match(const QString &query); + bool selectStrategy(const TQString &strategy) const; + void match(const TQString &query); signals: - void defineRequested(const QString &query); - void matchRequested(const QString &query); + void defineRequested(const TQString &query); + void matchRequested(const TQString &query); void clipboardRequested(); void windowClosed(); protected: - void closeEvent ( QCloseEvent * e ); + void closeEvent ( TQCloseEvent * e ); private slots: void strategySelected(int num); void enableGetButton(); - void mouseButtonPressed(int, QListViewItem *, const QPoint &, int); - void returnPressed(QListViewItem *i); - void getOneItem(QListViewItem *i); + void mouseButtonPressed(int, TQListViewItem *, const TQPoint &, int); + void returnPressed(TQListViewItem *i); + void getOneItem(TQListViewItem *i); void getSelected(); void getAll(); - void doGet(QStringList &defines); - void newList(const QStringList &matches); - void buildPopupMenu(QListViewItem *, const QPoint &, int); + void doGet(TQStringList &defines); + void newList(const TQStringList &matches); + void buildPopupMenu(TQListViewItem *, const TQPoint &, int); void popupGetCurrent(); void popupDefineCurrent(); void popupMatchCurrent(); @@ -91,15 +91,15 @@ private slots: private: - QComboBox *w_strat; - QListView *w_list; - QPushButton *w_get,*w_getAll; + TQComboBox *w_strat; + TQListView *w_list; + TQPushButton *w_get,*w_getAll; bool getOn, getAllOn; KPopupMenu *rightBtnMenu; MatchViewItem *popupCurrent; - QString popupClip; // needed for rightbtn-popup menu + TQString popupClip; // needed for rightbtn-popup menu }; #endif |