Logo Search packages:      
Sourcecode: darkroom version File versions

KCurve::KCurve ( QWidget *  parent = 0,
Qt::WFlags  f = 0 
)

Create a new curve widget with a default curve, that is a straight line from bottom-left to top-right.

Definition at line 48 of file kcurve.cc.

            : QWidget(parent, f)
{
    m_grab_point_index = -1;
    m_readOnlyMode   = false;
    m_guideVisible   = false;
    m_dragging = false;

    setMouseTracking(true);
    setAutoFillBackground(false);
    setAttribute(Qt::WA_OpaquePaintEvent);
    setMinimumSize(150, 50);
    QPointF p;
    p.rx() = 0.0; p.ry()=0.0;
    m_points.append(p);
    p.rx() = 1.0; p.ry()=1.0;
    m_points.append(p);
    setFocusPolicy(Qt::StrongFocus);
}


Generated by  Doxygen 1.6.0   Back to index