Commit b5f171bd authored by Julius Künzel's avatar Julius Künzel
Browse files

Improve default options of the keyframe import dialog

parent 7320c612
......@@ -285,6 +285,14 @@ void KeyframeImport::updateDataDisplay()
if (type == ParamType::KeyframeParam) {
// 1 dimensional param.
m_sourceCombo->addItem(m_dataCombo->currentText(), ImportRoles::SimpleValue);
// map rotation to rotation by default if possible
if (m_dataCombo->currentText() == QStringLiteral("rotation")) {
int idx = m_targetCombo->findText(i18n("Rotation"));
if (idx > -1) {
m_targetCombo->setCurrentIndex(idx);
}
}
updateRange();
return;
}
......@@ -300,6 +308,12 @@ void KeyframeImport::updateDataDisplay()
if (hDist > 0) {
m_sourceCombo->addItem(i18n("Height"), ImportRoles::HeightOnly);
}
// if available map to Rectangle by default
int idx = m_targetCombo->findText(i18n("Rectangle"));
if (idx > -1) {
m_targetCombo->setCurrentIndex(idx);
}
updateRange();
/*if (!m_inPoint->isValid()) {
m_inPoint->blockSignals(true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment