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/filethumbnailviewitem.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/filethumbnailviewitem.h')
-rw-r--r-- | src/gvcore/filethumbnailviewitem.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/gvcore/filethumbnailviewitem.h b/src/gvcore/filethumbnailviewitem.h index 0a817bf..55b2c98 100644 --- a/src/gvcore/filethumbnailviewitem.h +++ b/src/gvcore/filethumbnailviewitem.h @@ -22,46 +22,46 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #ifndef FILETHUMBNAILVIEWITEM_H #define FILETHUMBNAILVIEWITEM_H -// Qt -#include <qiconview.h> -#include <qpixmap.h> -#include <qstring.h> -#include <qvaluevector.h> +// TQt +#include <tqiconview.h> +#include <tqpixmap.h> +#include <tqstring.h> +#include <tqvaluevector.h> class KFileItem; namespace Gwenview { /** - * We override the QIconViewItem to control the look of selected items + * We override the TQIconViewItem to control the look of selected items * and get a pointer to our KFileItem */ -class FileThumbnailViewItem : public QIconViewItem { +class FileThumbnailViewItem : public TQIconViewItem { public: class Line; class CroppedLine; class WrappedLine; enum { PADDING=4 }; - FileThumbnailViewItem(QIconView* parent,const QString& text,const QPixmap& icon, KFileItem* fileItem); + FileThumbnailViewItem(TQIconView* tqparent,const TQString& text,const TQPixmap& icon, KFileItem* fileItem); ~FileThumbnailViewItem(); KFileItem* fileItem() const { return mFileItem; } - void setImageSize(const QSize&); + void setImageSize(const TQSize&); void updateLines(); protected: - void paintItem(QPainter* painter, const QColorGroup& colorGroup); - void calcRect( const QString& text_=QString::null ); - void paintFocus(QPainter*, const QColorGroup&) {} - bool acceptDrop(const QMimeSource*) const; - void dropped(QDropEvent*, const QValueList<QIconDragItem>&); + void paintItem(TQPainter* painter, const TQColorGroup& tqcolorGroup); + void calcRect( const TQString& text_=TQString() ); + void paintFocus(TQPainter*, const TQColorGroup&) {} + bool acceptDrop(const TQMimeSource*) const; + void dropped(TQDropEvent*, const TQValueList<TQIconDragItem>&); KFileItem* mFileItem; - QValueVector<Line*> mLines; + TQValueVector<Line*> mLines; - QSize mImageSize; + TQSize mImageSize; }; } // namespace |