svn path=/trunk/kdenlive/; revision=5082
m_vbox->addWidget(toFillin);
}
m_vbox->addStretch();
+
+ if(m_keyframeEditor)
+ m_keyframeEditor->checkVisibleParam();
}
wipeInfo EffectStackEdit::getWipeInfo(QString value)
return false;
}
+void KeyframeEdit::checkVisibleParam()
+{
+ if (m_params.count() == 0)
+ return;
+
+ foreach(QDomElement elem, m_params) {
+ if (elem.attribute("intimeline") == "1")
+ return;
+ }
+
+ slotUpdateVisibleParameter(0);
+ QRadioButton *radio = static_cast<QRadioButton*>(m_slidersLayout->itemAtPosition(0, 1)->widget());
+ if (radio)
+ radio->setChecked(true);
+}
+
#include "keyframeedit.moc"
/** @brief Returns true if the parameter @param name should be shown on the clip in timeline. */
bool isVisibleParam(const QString &name);
+ /** @brief Makes the first parameter visible in timeline if no parameter is selected. */
+ void checkVisibleParam();
+
private:
QList <QDomElement> m_params;
int m_min;