14 #include <QResizeEvent> 18 QWidget *parent,
const char* name ) :
33 return QSize( 500, 400 );
67 newSelection.setLeft( center.x() - actualSize.width() /2 );
68 newSelection.setTop ( center.y() - actualSize.height()/2 );
69 newSelection.setRight( newSelection.left() + actualSize.width() - 1 );
70 newSelection.setBottom( newSelection.top() + actualSize.height() - 1 );
85 if(
selection.width() > actualSize.width() )
87 if(
selection.height() > actualSize.height() )
QRect selection
Current selection.
void setSelection(QRect selection)
virtual QSize sizeHint() const
A split view interface provides a means to show before and after versions of an image while adjustmen...
void setImages(QImage origImage, QImage adjustedImage)
QImage fullSizeImage
Full size image.
void resizeEvent(QResizeEvent *)
PanningPreviewInterface(QString imageFilename, QWidget *parent=0, const char *name=0)
Creates layout.