Logo Search packages:      
Sourcecode: kdenlive version File versions

KisCurveWidget::KisCurveWidget ( 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 64 of file kis_curve_widget.cpp.

References KisCurveWidget::Private::setCurveModified().

        : QWidget(parent, f), d(new KisCurveWidget::Private(this))
{
    setObjectName("KisCurveWidget");
    d->m_grab_point_index = -1;
    d->m_readOnlyMode   = false;
    d->m_guideVisible   = false;
    d->m_pixmapDirty = true;
    d->m_pixmapCache = NULL;
    d->setState(ST_NORMAL);

    d->m_intIn = NULL;
    d->m_intOut = NULL;

    d->m_maxPoints = -1;

    setMouseTracking(true);
    setAutoFillBackground(false);
    setAttribute(Qt::WA_OpaquePaintEvent);
    setMinimumSize(150, 150);
    setMaximumSize(1000, 1000);
    setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);

    d->setCurveModified();

    setFocusPolicy(Qt::StrongFocus);
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index