10
class PixmapWidget : public QWidget
15
PixmapWidget( QWidget *parent=0 );
18
void loadFile( const QString &filename );
19
void setPixmap( const QPixmap &aPix );
26
void setZoomFactor( float );
29
void zoomFactorChanged( float );
32
virtual void paintEvent( QPaintEvent* anEvent);
33
virtual void wheelEvent( QWheelEvent* anEvent);
34
virtual void resizeEvent ( QResizeEvent * anEvent );
36
virtual void mousePressEvent ( QMouseEvent * anEvent ) ;
37
virtual void mouseReleaseEvent ( QMouseEvent * anEvent );
38
virtual void mouseMoveEvent ( QMouseEvent * anEvent );
46
QPoint FirstPan, LastPan;
50
#endif // PIXMAPWIDGET_H