ViewProfileDivider Class Reference

Divider that can be dragged, in a dialog QGraphicsView. More...

#include <ViewProfileDivider.h>

List of all members.

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.

Detailed Description

Divider that can be dragged, in a dialog QGraphicsView.

Click on the paddle to drag. There are three parts:

  1. Paddle which is the superclass of this class, since we catch its events so dragging works
  2. Divider which is a vertical line
  3. Shaded area that extends from xAnchor to the divider

Definition at line 23 of file ViewProfileDivider.h.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator Friends

Generated on 4 Nov 2016 for Engauge Digitizer by  doxygen 1.6.1