From d7633c195a464e4d344ada9eea61afd10110598a Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 4 May 2011 19:54:24 +0000 Subject: Port kdesvn to TQt4 This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdesvn@1230412 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/svnfrontend/svnfiletip.h | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) (limited to 'src/svnfrontend/svnfiletip.h') diff --git a/src/svnfrontend/svnfiletip.h b/src/svnfrontend/svnfiletip.h index d63cf97..e275d2d 100644 --- a/src/svnfrontend/svnfiletip.h +++ b/src/svnfrontend/svnfiletip.h @@ -24,24 +24,25 @@ #ifndef SVNFILETIP_H #define SVNFILETIP_H -#include -#include +#include +#include #include class KFileItem; -class QLabel; -class QScrollView; -class QTimer; +class TQLabel; +class TQScrollView; +class TQTimer; class SvnItem; /** @author Rajko Albrecht */ -class SvnFileTip : public QFrame +class SvnFileTip : public TQFrame { Q_OBJECT + TQ_OBJECT public: - SvnFileTip(QScrollView*parent); + SvnFileTip(TQScrollView*tqparent); virtual ~SvnFileTip(); void setPreview(bool on); @@ -57,17 +58,17 @@ public: @param rect the rectangle around which the tip will be shown @param pixmap the pixmap to be shown. If 0, no pixmap is shown */ - void setItem(SvnItem*item, const QRect &rect = QRect(), - const QPixmap *pixmap = 0 ); + void setItem(SvnItem*item, const TQRect &rect = TQRect(), + const TQPixmap *pixmap = 0 ); - virtual bool eventFilter( QObject *, QEvent *e ); + virtual bool eventFilter( TQObject *, TQEvent *e ); protected: - virtual void drawContents( QPainter *p ); - virtual void resizeEvent( QResizeEvent * ); + virtual void drawContents( TQPainter *p ); + virtual void resizeEvent( TQResizeEvent * ); private slots: - void gotPreview( const KFileItem*, const QPixmap& ); + void gotPreview( const KFileItem*, const TQPixmap& ); void gotPreviewResult(); void startDelayed(); @@ -79,19 +80,19 @@ public: void reposition(); - QLabel* m_iconLabel; - QLabel* m_textLabel; + TQLabel* m_iconLabel; + TQLabel* m_textLabel; bool m_on : 1; bool m_preview : 1; // shall the preview icon be shown bool m_filter : 1; - QPixmap m_corners[4]; + TQPixmap m_corners[4]; int m_corner; int m_num; - QScrollView* m_view; + TQScrollView* m_view; SvnItem* m_svnitem; KIO::PreviewJob* m_previewJob; - QRect m_rect; - QTimer* m_timer; + TQRect m_rect; + TQTimer* m_timer; }; #endif -- cgit v1.2.1