#include <areagrab.h>
Signals | |
void | areaReady (const QRect &) |
Public Member Functions | |
AreaGrab (QWidget *parent=0, const char *name=0, WFlags f=0) | |
Protected Member Functions | |
void | mousePressEvent (QMouseEvent *) |
void | mouseReleaseEvent (QMouseEvent *) |
void | mouseMoveEvent (QMouseEvent *) |
Private Member Functions | |
void | drawRect () |
Private Attributes | |
QRect | area |
QRect | bgRect |
QPixmap | bgPixmap |
bool | grabbing |
|
Constructs the area widget with the currently shown display as a background pixmap in original size. |
|
|
|
This is where the drawing is done. Note that we set the RasterOp to XorROP here, because we want the rectangle to be erased if drawn twice with the same geometry. |
|
Updates the area rectangle. Draws the rectangle once before doing the update and once after the update. The first drawing will erase the currently shown rectangle, because of the XOR method used by the painter. Here is the call graph for this function: |
|
Sets up the area rectangle at the current mouse position. Here is the call graph for this function: |
|
The final update of the area rectangle occurs here. Also the rectangle is drawn one last time, thus erasing it. The areaReady() signal is emitted here. Here is the call graph for this function: |
|
|
|
|
|
|
|
|