|
Public Slots |
virtual void | Double () |
| Doubles the scale of the canvas.
|
virtual void | Halve () |
| Halves the scale of the canvas.
|
Signals |
void | clicked (QCanvasItem *) |
| Signal is emitted when an item is clicked.
|
void | dragged (QCanvasItem *, const QPoint &pt) |
| Signal is emitted when an item is dragged.
|
Public Member Functions |
virtual void | addAction (QAction *a) |
| Adds action to the list of actions displayed as the context menu.
|
virtual void | removeAction (QAction *a) |
| Removes an action from the list of actions displayed as the context menu.
|
virtual void | setDragsEnabled (bool yes) |
| Enables or disables dragging of objects.
|
virtual void | setScale (double sx, double sy=0) |
| Sets the scale of both X and Y axis.
|
virtual void | setScaleX (const double sx) |
| Scales the canvas in X direction.
|
virtual void | setScaleY (const double sy) |
| Scales the canvas in Y direction.
|
Properties |
bool | dragsEnabled |
| Returns information if dragging is enabled.
|
double | scaleX |
| Returns the scale of X axis.
|
double | scaleY |
| Returns the scale of Y axis.
|