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/kchmtreeviewitem.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/kchmtreeviewitem.h')
-rw-r--r-- | src/kchmtreeviewitem.h | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/src/kchmtreeviewitem.h b/src/kchmtreeviewitem.h index 7dd7011..cc21870 100644 --- a/src/kchmtreeviewitem.h +++ b/src/kchmtreeviewitem.h @@ -22,8 +22,8 @@ #ifndef CTREEVIEWITEM_H #define CTREEVIEWITEM_H -#include <qlistview.h> -#include <qvaluevector.h> +#include <tqlistview.h> +#include <tqvaluevector.h> #include "libchmfile.h" @@ -31,70 +31,70 @@ @author Georgy Yunaev */ //! This is a list item used both in Index and Table Of Content trees -class KCHMIndTocItem : public QListViewItem +class KCHMIndTocItem : public TQListViewItem { public: - KCHMIndTocItem( QListViewItem* parent, QListViewItem* after, QString name, QString aurl, int image); - KCHMIndTocItem( QListView* parent, QListViewItem* after, QString name, QString url, int image); + KCHMIndTocItem( TQListViewItem* tqparent, TQListViewItem* after, TQString name, TQString aurl, int image); + KCHMIndTocItem( TQListView* tqparent, TQListViewItem* after, TQString name, TQString url, int image); - QString getUrl() const; + TQString getUrl() const; virtual void setOpen ( bool open ); private: - virtual void paintBranches ( QPainter * p, const QColorGroup & cg, int w, int y, int h ); - virtual void paintCell ( QPainter * p, const QColorGroup & cg, int column, int width, int align ); - virtual const QPixmap * pixmap( int i ) const; + virtual void paintBranches ( TQPainter * p, const TQColorGroup & cg, int w, int y, int h ); + virtual void paintCell ( TQPainter * p, const TQColorGroup & cg, int column, int width, int align ); + virtual const TQPixmap * pixmap( int i ) const; - QString url; + TQString url; int image_number; }; -class KCMSearchTreeViewItem : public QListViewItem +class KCMSearchTreeViewItem : public TQListViewItem { public: - KCMSearchTreeViewItem (QListView* parent, QString name, QString loc, QString url) - : QListViewItem (parent, name, loc) + KCMSearchTreeViewItem (TQListView* tqparent, TQString name, TQString loc, TQString url) + : TQListViewItem (tqparent, name, loc) { this->url = url; } - QString getUrl() const { return url; } + TQString getUrl() const { return url; } private: - QString url; + TQString url; }; -class KCHMSingleTreeViewItem : public QListViewItem +class KCHMSingleTreeViewItem : public TQListViewItem { public: - KCHMSingleTreeViewItem (QListView* parent, QString name, QString url) - : QListViewItem (parent, name) + KCHMSingleTreeViewItem (TQListView* tqparent, TQString name, TQString url) + : TQListViewItem (tqparent, name) { this->url = url; } - QString getUrl() const { return url; } + TQString getUrl() const { return url; } private: - QString url; + TQString url; }; -class KCHMBookmarkTreeViewItem : public QListViewItem +class KCHMBookmarkTreeViewItem : public TQListViewItem { public: - KCHMBookmarkTreeViewItem (QListView* parent, QString n, QString u, int s) - : QListViewItem (parent, n), url(u), name(n), scroll_y(s) { menuid = 0; } + KCHMBookmarkTreeViewItem (TQListView* tqparent, TQString n, TQString u, int s) + : TQListViewItem (tqparent, n), url(u), name(n), scroll_y(s) { menuid = 0; } - QString url; - QString name; + TQString url; + TQString name; int scroll_y; int menuid; }; -void kchmFillListViewWithParsedData( QListView * list, const QValueVector< LCHMParsedEntry >& data, QMap<QString, KCHMIndTocItem*> * map ); +void kchmFillListViewWithParsedData( TQListView * list, const TQValueVector< LCHMParsedEntry >& data, TQMap<TQString, KCHMIndTocItem*> * map ); #endif |