diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-29 19:00:37 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-29 19:00:37 +0000 |
commit | 25794f504692e5a36c490438814e9dfda8aaa2dd (patch) | |
tree | 8061e6d27b5bc9042afdff177872779c4e8c9015 /src/kchmindexwindow.h | |
parent | 35ff2a942f63b5201c04f41c3097e61cdd7817e9 (diff) | |
download | kchmviewer-25794f504692e5a36c490438814e9dfda8aaa2dd.tar.gz kchmviewer-25794f504692e5a36c490438814e9dfda8aaa2dd.zip |
TQt4 port kchmviewer
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kchmviewer@1234150 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kchmindexwindow.h')
-rw-r--r-- | src/kchmindexwindow.h | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/src/kchmindexwindow.h b/src/kchmindexwindow.h index 1067c4e..a8cedbd 100644 --- a/src/kchmindexwindow.h +++ b/src/kchmindexwindow.h @@ -23,39 +23,40 @@ #define KCHMINDEXWINDOW_H -#include <qlineedit.h> -#include <qlistview.h> +#include <tqlineedit.h> +#include <tqlistview.h> /** @author Georgy Yunaev */ -class KCHMIndexWindow : public QWidget +class KCHMIndexWindow : public TQWidget { Q_OBJECT + TQ_OBJECT public: - KCHMIndexWindow ( QWidget * parent = 0, const char * name = 0, WFlags f = 0 ); + KCHMIndexWindow ( TQWidget * tqparent = 0, const char * name = 0, WFlags f = 0 ); - void invalidate(); - void search( const QString& index ); + void tqinvalidate(); + void search( const TQString& index ); public slots: - void slotContextMenuRequested ( QListViewItem *item, const QPoint &point, int column ); + void slotContextMenuRequested ( TQListViewItem *item, const TQPoint &point, int column ); private slots: - void onTextChanged ( const QString & newvalue); + void onTextChanged ( const TQString & newvalue); void onReturnPressed (); - void onDoubleClicked ( QListViewItem *, const QPoint &, int); + void onDoubleClicked ( TQListViewItem *, const TQPoint &, int); private: - virtual void showEvent ( QShowEvent * ); + virtual void showEvent ( TQShowEvent * ); void refillIndex(); - QLineEdit * m_indexFinder; + TQLineEdit * m_indexFinder; KQListView * m_indexList; - KQPopupMenu * m_contextMenu; - QListViewItem * m_lastSelectedItem; + KTQPopupMenu * m_contextMenu; + TQListViewItem * m_lastSelectedItem; bool m_indexListFilled; }; |