26#include <QGraphicsView>
38class Q_DECL_EXPORT
KplView :
public QGraphicsView
47 KplView(
double f = 1, QWidget* parent = 0);
58 inline double zoomFactor()
const {
return m_zoomFactor; };
124 QRubberBand* rubberBand;
Kpl main view class.
Definition: kplview.h:39
void urlsDropped(QList< QUrl > *list)
Emitted at drop event.
virtual QSize sizeHint() const
Calculates recommended size of the widget.
double zoomFactor() const
Returns zoom factor.
Definition: kplview.h:58
virtual void dropEvent(QDropEvent *e)
Emits the signal urlsDropped, transferring a list of URLs.
virtual void mouseReleaseEvent(QMouseEvent *e)
Implements finishing of selection of a rectangular region using the mouse with its right button press...
void setZoomFactor(double f)
Sets zoom factor.
virtual void leaveEvent(QEvent *e)
Emits the signal mouseLeaved.
void mouseLeaved()
Emitted when mouse cursor leaves the widget.
virtual void dragMoveEvent(QDragMoveEvent *e)
virtual void mouseMoveEvent(QMouseEvent *e)
Implements selection of a rectangular region using the mouse with its right button pressed.
virtual ~KplView()
Destructor.
virtual void mousePressEvent(QMouseEvent *e)
Implements initiation of selection of a rectangular region using the mouse with its right button pres...
virtual void dragEnterEvent(QDragEnterEvent *e)
virtual void keyPressEvent(QKeyEvent *e)
Implements scrolling of the window by key sequences.
KplView(double f=1, QWidget *parent=0)
Constructor.
void regionSelected(const QRectF &rect)
Emitted when rectangular region was selected using the mouse with its right button pressed.