summaryrefslogtreecommitdiffstats
path: root/kview/kviewcanvas/kimageholder.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /kview/kviewcanvas/kimageholder.h
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz
tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kview/kviewcanvas/kimageholder.h')
-rw-r--r--kview/kviewcanvas/kimageholder.h54
1 files changed, 27 insertions, 27 deletions
diff --git a/kview/kviewcanvas/kimageholder.h b/kview/kviewcanvas/kimageholder.h
index 780ce372..73148cbf 100644
--- a/kview/kviewcanvas/kimageholder.h
+++ b/kview/kviewcanvas/kimageholder.h
@@ -20,13 +20,13 @@
#ifndef _KIMAGEHOLDER_H
#define _KIMAGEHOLDER_H
-#include <qwidget.h>
-class QRect;
-class QPainter;
-class QPen;
-class QPixmap;
+#include <tqwidget.h>
+class TQRect;
+class TQPainter;
+class TQPen;
+class TQPixmap;
class KPixmap;
-class QPoint;
+class TQPoint;
/**
* @short Image widget
@@ -36,15 +36,15 @@ class KImageHolder : public QWidget
{
Q_OBJECT
public:
- KImageHolder( QWidget *parent = 0, const char * name = 0 );
+ KImageHolder( TQWidget *parent = 0, const char * name = 0 );
virtual ~KImageHolder();
void clearSelection();
void setImage( const KPixmap & );
- void setImage( const QImage & );
- void setImage( const QMovie & );
+ void setImage( const TQImage & );
+ void setImage( const TQMovie & );
/**
* clears the ImageHolder
@@ -54,37 +54,37 @@ class KImageHolder : public QWidget
/**
* the selected rect
*/
- QRect selection() const;
+ TQRect selection() const;
- QSize sizeHint() const;
+ TQSize sizeHint() const;
- void setDrawRect( const QRect & rect ) { m_drawRect = rect; }
- const QRect & drawRect() const { return m_drawRect; }
+ void setDrawRect( const TQRect & rect ) { m_drawRect = rect; }
+ const TQRect & drawRect() const { return m_drawRect; }
signals:
- void contextPress( const QPoint& );
- void selected( const QRect & );
+ void contextPress( const TQPoint& );
+ void selected( const TQRect & );
void wannaScroll( int dx, int dy );
- void cursorPos( const QPoint & );
+ void cursorPos( const TQPoint & );
protected:
- void mousePressEvent( QMouseEvent * );
- void mouseMoveEvent( QMouseEvent * );
- void mouseReleaseEvent( QMouseEvent * );
- void paintEvent( QPaintEvent * );
- virtual void timerEvent( QTimerEvent * );
+ void mousePressEvent( TQMouseEvent * );
+ void mouseMoveEvent( TQMouseEvent * );
+ void mouseReleaseEvent( TQMouseEvent * );
+ void paintEvent( TQPaintEvent * );
+ virtual void timerEvent( TQTimerEvent * );
private:
- void drawSelect( QPainter & );
+ void drawSelect( TQPainter & );
void eraseSelect();
void setPixmap( const KPixmap & );
private:
- QRect m_selection;
- QRect m_drawRect;
- QPoint m_scrollpos;
- QPoint m_selectionStartPoint;
+ TQRect m_selection;
+ TQRect m_drawRect;
+ TQPoint m_scrollpos;
+ TQPoint m_selectionStartPoint;
const KPixmap & checkboardPixmap();
@@ -93,7 +93,7 @@ class KImageHolder : public QWidget
int m_scrollTimerId;
int m_xOffset, m_yOffset;
- QPen *m_pen;
+ TQPen *m_pen;
KPixmap * m_pPixmap;
KPixmap * m_pDoubleBuffer;