diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-26 21:04:57 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-26 21:04:57 +0000 |
commit | bf7f88413be3831a9372d323d02fc0335b9f9188 (patch) | |
tree | 516fdef9206245b40a14f99b4e3d9ef9289196e0 /src/gvcore/filedetailviewitem.h | |
parent | e238aa77b1fb3c2f55aef2ef2c91ce52166d2cc8 (diff) | |
download | gwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.tar.gz gwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.zip |
TQt4 port Gwenview
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gwenview@1233720 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gvcore/filedetailviewitem.h')
-rw-r--r-- | src/gvcore/filedetailviewitem.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/gvcore/filedetailviewitem.h b/src/gvcore/filedetailviewitem.h index c67a34b..ef769a9 100644 --- a/src/gvcore/filedetailviewitem.h +++ b/src/gvcore/filedetailviewitem.h @@ -39,22 +39,22 @@ namespace Gwenview { class FileDetailViewItem : public KListViewItem { public: - FileDetailViewItem( QListView* parent, const QString &text, - const QPixmap &icon, KFileItem* fi ) - : KListViewItem( parent, text ), inf( fi ) { + FileDetailViewItem( TQListView* tqparent, const TQString &text, + const TQPixmap &icon, KFileItem* fi ) + : KListViewItem( tqparent, text ), inf( fi ) { setPixmap( 0, icon ); setText( 0, text ); } - FileDetailViewItem( QListView* parent, KFileItem* fi ) - : KListViewItem( parent ), inf( fi ) { + FileDetailViewItem( TQListView* tqparent, KFileItem* fi ) + : KListViewItem( tqparent ), inf( fi ) { init(); } - FileDetailViewItem( QListView* parent, const QString &text, - const QPixmap &icon, KFileItem* fi, - QListViewItem* after) - : KListViewItem( parent, after ), inf( fi ) { + FileDetailViewItem( TQListView* tqparent, const TQString &text, + const TQPixmap &icon, KFileItem* fi, + TQListViewItem* after) + : KListViewItem( tqparent, after ), inf( fi ) { setPixmap( 0, icon ); setText( 0, text ); } @@ -65,23 +65,23 @@ public: KFileItem* fileInfo() const { return inf; } - virtual QString key( int /*column*/, bool /*ascending*/ ) const { return m_key; } + virtual TQString key( int /*column*/, bool /*ascending*/ ) const { return m_key; } - void setKey( const QString& key ) { m_key = key; } + void setKey( const TQString& key ) { m_key = key; } - QRect rect() const + TQRect rect() const { - QRect r = listView()->itemRect(this); - return QRect( listView()->viewportToContents( r.topLeft() ), - QSize( r.width(), r.height() ) ); + TQRect r = listView()->tqitemRect(this); + return TQRect( listView()->viewportToContents( r.topLeft() ), + TQSize( r.width(), r.height() ) ); } void init(); - virtual const QPixmap* pixmap(int column) const; + virtual const TQPixmap* pixmap(int column) const; private: KFileItem* inf; - QString m_key; + TQString m_key; }; } // namespace |