diff options
Diffstat (limited to 'kipi-plugins/printwizard/cropframe.h')
-rw-r--r-- | kipi-plugins/printwizard/cropframe.h | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/kipi-plugins/printwizard/cropframe.h b/kipi-plugins/printwizard/cropframe.h index ce90b5d..08ebcaa 100644 --- a/kipi-plugins/printwizard/cropframe.h +++ b/kipi-plugins/printwizard/cropframe.h @@ -18,10 +18,10 @@ #ifndef CROPFRAME_H #define CROPFRAME_H -// Qt includes. +// TQt includes. -#include <qwidget.h> -#include <qpixmap.h> +#include <tqwidget.h> +#include <tqpixmap.h> // Local includes. @@ -30,38 +30,39 @@ namespace KIPIPrintWizardPlugin { -class CropFrame : public QWidget +class CropFrame : public TQWidget { Q_OBJECT + TQ_OBJECT public: - CropFrame(QWidget *parent, const char *name); + CropFrame(TQWidget *tqparent, const char *name); ~CropFrame(); void init(TPhoto *photo, int width, int height, bool autoRotate, bool paint = true); - void setColor(QColor); - QColor color(); + void setColor(TQColor); + TQColor color(); private: TPhoto *m_photo; bool m_mouseDown; - QPixmap *m_pixmap; + TQPixmap *m_pixmap; int m_pixmapX; int m_pixmapY; - QColor m_color; + TQColor m_color; - QRect m_cropRegion; + TQRect m_cropRegion; - QRect _screenToPhotoRect(QRect r); - QRect _photoToScreenRect(QRect r); + TQRect _screenToPhotoRect(TQRect r); + TQRect _photoToScreenRect(TQRect r); protected: - void paintEvent (QPaintEvent *); - void mousePressEvent(QMouseEvent *); - void mouseReleaseEvent(QMouseEvent *); - void mouseMoveEvent(QMouseEvent *); - void keyPressEvent(QKeyEvent *); + void paintEvent (TQPaintEvent *); + void mousePressEvent(TQMouseEvent *); + void mouseReleaseEvent(TQMouseEvent *); + void mouseMoveEvent(TQMouseEvent *); + void keyPressEvent(TQKeyEvent *); }; } // NameSpace KIPIPrintWizardPlugin |