Always show the up/down arrows to move effects up and down to have consistent interface

BUG: 356766
parent 3de228aa
......@@ -62,17 +62,13 @@ CollapsibleEffect::CollapsibleEffect(const QDomElement &effect, const QDomElemen
setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
buttonUp->setIcon(KoIconUtils::themedIcon("kdenlive-up"));
buttonUp->setToolTip(i18n("Move effect up"));
if (!lastEffect) {
buttonDown->setIcon(KoIconUtils::themedIcon("kdenlive-down"));
buttonDown->setToolTip(i18n("Move effect down"));
}
buttonDown->setIcon(KoIconUtils::themedIcon("kdenlive-down"));
buttonDown->setToolTip(i18n("Move effect down"));
buttonDel->setIcon(KoIconUtils::themedIcon("kdenlive-deleffect"));
buttonDel->setToolTip(i18n("Delete effect"));
if (effectIndex() == 1) buttonUp->setVisible(false);
if (m_lastEffect) buttonDown->setVisible(false);
//buttonUp->setVisible(false);
//buttonDown->setVisible(false);
if (effectIndex() == 1) buttonUp->setEnabled(false);
if (m_lastEffect) buttonDown->setEnabled(false);
/*buttonReset->setIcon(KoIconUtils::themedIcon("view-refresh"));
buttonReset->setToolTip(i18n("Reset effect"));*/
//checkAll->setToolTip(i18n("Enable/Disable all effects"));
......@@ -639,8 +635,8 @@ void CollapsibleEffect::dropEvent(QDropEvent *event)
void CollapsibleEffect::adjustButtons(int ix, int max)
{
buttonUp->setVisible(ix > 0);
buttonDown->setVisible(ix < max - 1);
buttonUp->setEnabled(ix > 0);
buttonDown->setEnabled(ix < max - 1);
}
MonitorSceneType CollapsibleEffect::needsMonitorEffectScene() const
......
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