summaryrefslogtreecommitdiffstats
path: root/src/svnfrontend/svnfiletip.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-04 19:54:24 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-04 19:54:24 +0000
commitd7633c195a464e4d344ada9eea61afd10110598a (patch)
tree1f2da0b135f3ed84955e340cae823f00c4ce7284 /src/svnfrontend/svnfiletip.h
parent3fa7eb804f67b2789f128075cc2522f398640250 (diff)
downloadtdesvn-d7633c195a464e4d344ada9eea61afd10110598a.tar.gz
tdesvn-d7633c195a464e4d344ada9eea61afd10110598a.zip
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
Diffstat (limited to 'src/svnfrontend/svnfiletip.h')
-rw-r--r--src/svnfrontend/svnfiletip.h39
1 files changed, 20 insertions, 19 deletions
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 <qframe.h>
-#include <qpixmap.h>
+#include <tqframe.h>
+#include <tqpixmap.h>
#include <kio/previewjob.h>
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