diff options
Diffstat (limited to 'digikam/imageplugins/superimpose/superimposewidget.h')
-rw-r--r-- | digikam/imageplugins/superimpose/superimposewidget.h | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/digikam/imageplugins/superimpose/superimposewidget.h b/digikam/imageplugins/superimpose/superimposewidget.h index 6beacd9..8b661d3 100644 --- a/digikam/imageplugins/superimpose/superimposewidget.h +++ b/digikam/imageplugins/superimpose/superimposewidget.h @@ -26,13 +26,13 @@ #ifndef SUPERIMPOSEWIDGET_H #define SUPERIMPOSEWIDGET_H -// Qt includes. +// TQt includes. -#include <qwidget.h> -#include <qimage.h> -#include <qrect.h> -#include <qsize.h> -#include <qpixmap.h> +#include <tqwidget.h> +#include <tqimage.h> +#include <tqrect.h> +#include <tqsize.h> +#include <tqpixmap.h> // KDE includes. @@ -43,7 +43,7 @@ #include "imageiface.h" #include "dimg.h" -class QPixmap; +class TQPixmap; namespace Digikam { @@ -60,19 +60,20 @@ enum Action MOVE }; -class SuperImposeWidget : public QWidget +class SuperImposeWidget : public TQWidget { Q_OBJECT + TQ_OBJECT public: - SuperImposeWidget(int w, int h, QWidget *parent=0); + SuperImposeWidget(int w, int h, TQWidget *tqparent=0); ~SuperImposeWidget(); void setEditMode(int mode); void resetEdit(void); - QRect getCurrentSelection(void); - QSize getTemplateSize(void); + TQRect getCurrentSelection(void); + TQSize getTemplateSize(void); Digikam::DImg makeSuperImpose(void); public slots: @@ -82,11 +83,11 @@ public slots: protected: - void paintEvent( QPaintEvent *e ); - void resizeEvent( QResizeEvent * e ); - void mousePressEvent ( QMouseEvent * e ); - void mouseReleaseEvent ( QMouseEvent * e ); - void mouseMoveEvent ( QMouseEvent * e ); + void paintEvent( TQPaintEvent *e ); + void resizeEvent( TQResizeEvent * e ); + void mousePressEvent ( TQMouseEvent * e ); + void mouseReleaseEvent ( TQMouseEvent * e ); + void mouseMoveEvent ( TQMouseEvent * e ); bool zoomSelection(float deltaZoomFactor); void moveSelection(int x, int y); @@ -103,10 +104,10 @@ private: int m_editMode; float m_zoomFactor; - QPixmap *m_pixmap; // For image region selection manipulations. + TQPixmap *m_pixmap; // For image region selection manipulations. - QRect m_rect; // For mouse drag position. - QRect m_currentSelection; // Region selection in image displayed in the widget. + TQRect m_rect; // For mouse drag position. + TQRect m_currentSelection; // Region selection in image displayed in the widget. Digikam::DImg m_template; // Full template data. Digikam::DImg m_templateScaled; // Template scaled to preview widget |