summaryrefslogtreecommitdiffstats
path: root/libkscan/img_canvas.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /libkscan/img_canvas.h
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkscan/img_canvas.h')
-rw-r--r--libkscan/img_canvas.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/libkscan/img_canvas.h b/libkscan/img_canvas.h
index 958fecbb..b99cb630 100644
--- a/libkscan/img_canvas.h
+++ b/libkscan/img_canvas.h
@@ -71,17 +71,18 @@ extern int max_dpi;
-class ImageCanvas: public QScrollView
+class ImageCanvas: public TQScrollView
{
Q_OBJECT
+ TQ_OBJECT
Q_ENUMS( PopupIDs )
- Q_PROPERTY( int brightness READ getBrightness WRITE setBrightness )
- Q_PROPERTY( int contrast READ getContrast WRITE setContrast )
- Q_PROPERTY( int gamma READ getGamma WRITE setGamma )
- Q_PROPERTY( int scale_factor READ getScaleFactor WRITE setScaleFactor )
+ TQ_PROPERTY( int brightness READ getBrightness WRITE setBrightness )
+ TQ_PROPERTY( int contrast READ getContrast WRITE setContrast )
+ TQ_PROPERTY( int gamma READ getGamma WRITE setGamma )
+ TQ_PROPERTY( int scale_factor READ getScaleFactor WRITE setScaleFactor )
public:
- ImageCanvas( TQWidget *parent = 0,
+ ImageCanvas( TQWidget *tqparent = 0,
const TQImage *start_image = 0,
const char *name = 0);
~ImageCanvas( );
@@ -120,9 +121,9 @@ public slots:
void toggleAspect( int aspect_in_mind )
{
maintain_aspect = aspect_in_mind;
- repaint();
+ tqrepaint();
}
- virtual TQSize sizeHint() const;
+ virtual TQSize tqsizeHint() const;
void newImage( TQImage* );
void newImageHoldZoom( TQImage* );
void deleteView( TQImage *);
@@ -191,8 +192,8 @@ private:
KPixmapIO pixIO;
#endif
- QWMatrix scale_matrix;
- QWMatrix inv_scale_matrix;
+ TQWMatrix scale_matrix;
+ TQWMatrix inv_scale_matrix;
TQPixmap *pmScaled;
float used_yscaler;
float used_xscaler;