X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Feffectstackedit.cpp;h=8d951902f148363c3b1c8f9f5cd53ffbc5e8ba3c;hb=8bcc799b522e6e5ae0299973b4d296bef831a17f;hp=27fccfa022884801b1cbb2b1e86f7410c42cb837;hpb=adf2cb55879c1c14632b2dd907dc4ba74d90b073;p=kdenlive diff --git a/src/effectstackedit.cpp b/src/effectstackedit.cpp index 27fccfa0..8d951902 100644 --- a/src/effectstackedit.cpp +++ b/src/effectstackedit.cpp @@ -67,7 +67,7 @@ EffectStackEdit::EffectStackEdit(QWidget *parent) : m_in(0), m_out(0), m_frameSize(QPoint()), - m_keyframeEditor(NULL) + m_keyframeEditor(NULL) { m_baseWidget = new QWidget(this); setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); @@ -234,17 +234,16 @@ void EffectStackEdit::transferParamDesc(const QDomElement d, int in, int out) } else if (type == "keyframe" || type == "simplekeyframe") { // keyframe editor widget kDebug() << "min: " << m_in << ", MAX: " << m_out; - if (m_keyframeEditor == NULL) { - KeyframeEdit *geo = new KeyframeEdit(pa, m_in, m_in + m_out, pa.attribute("min").toInt(), pa.attribute("max").toInt(), m_timecode, paramName); - m_vbox->addWidget(geo); - m_valueItems[paramName+"keyframe"] = geo; - m_keyframeEditor = geo; - connect(geo, SIGNAL(parameterChanged()), this, SLOT(collectAllParameters())); - } - else { - // we already have a keyframe editor, so just add another column for the new param - m_keyframeEditor->addParameter(pa); - } + if (m_keyframeEditor == NULL) { + KeyframeEdit *geo = new KeyframeEdit(pa, m_in, m_in + m_out, pa.attribute("min").toInt(), pa.attribute("max").toInt(), m_timecode, paramName); + m_vbox->addWidget(geo); + m_valueItems[paramName+"keyframe"] = geo; + m_keyframeEditor = geo; + connect(geo, SIGNAL(parameterChanged()), this, SLOT(collectAllParameters())); + } else { + // we already have a keyframe editor, so just add another column for the new param + m_keyframeEditor->addParameter(pa); + } } else if (type == "color") { Colorval *cval = new Colorval; cval->setupUi(toFillin);