Engauge Digitizer 2
|
Divider that can be dragged, in a dialog QGraphicsView. More...
#include <ViewProfileDivider.h>
Signals | |
void | signalMovedLow (double xSceneOther) |
Signal used when divider is dragged and m_isLowerBoundary is true. | |
void | signalMovedHigh (double xSceneOther) |
Signal used when divider is dragged and m_isLowerBoundary is false. |
Public Member Functions | |
ViewProfileDivider (QGraphicsScene &scene, QGraphicsView &view, int sceneWidth, int sceneHeight, int yCenter, bool isLowerBoundary) | |
Single constructor. | |
virtual QVariant | itemChange (GraphicsItemChange change, const QVariant &value) |
Intercept changes so divider movement can be restricted to horizontal direction only. | |
virtual void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
Save paddle position at start of click-and-drag. | |
void | setX (double x, double xLow, double xHigh) |
Set the position by specifying the new x coordinate. |
Divider that can be dragged, in a dialog QGraphicsView.
Click on the paddle to drag. There are three parts:
Definition at line 23 of file ViewProfileDivider.h.
ViewProfileDivider::ViewProfileDivider | ( | QGraphicsScene & | scene, |
QGraphicsView & | view, | ||
int | sceneWidth, | ||
int | sceneHeight, | ||
int | yCenter, | ||
bool | isLowerBoundary ) |
Single constructor.
Definition at line 30 of file ViewProfileDivider.cpp.
|
virtual |
Intercept changes so divider movement can be restricted to horizontal direction only.
Definition at line 87 of file ViewProfileDivider.cpp.
|
virtual |
Save paddle position at start of click-and-drag.
Definition at line 112 of file ViewProfileDivider.cpp.
void ViewProfileDivider::setX | ( | double | x, |
double | xLow, | ||
double | xHigh ) |
Set the position by specifying the new x coordinate.
Definition at line 128 of file ViewProfileDivider.cpp.
|
signal |
Signal used when divider is dragged and m_isLowerBoundary is false.
|
signal |
Signal used when divider is dragged and m_isLowerBoundary is true.