Commit 0b60b1e9 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Expose proxy info in playlist clip properties (to allow delete, etc).

Related to #928
parent 617c3acb
...@@ -425,11 +425,13 @@ ClipPropertiesController::ClipPropertiesController(ClipController *controller, Q ...@@ -425,11 +425,13 @@ ClipPropertiesController::ClipPropertiesController(ClipController *controller, Q
connect(box, &QAbstractButton::toggled, spin1, &QWidget::setEnabled); connect(box, &QAbstractButton::toggled, spin1, &QWidget::setEnabled);
connect(box, &QAbstractButton::toggled, spin2, &QWidget::setEnabled); connect(box, &QAbstractButton::toggled, spin2, &QWidget::setEnabled);
vbox->addLayout(hlay); vbox->addLayout(hlay);
}
if (m_type == ClipType::AV || m_type == ClipType::Video || m_type == ClipType::Image || m_type == ClipType::Playlist) {
// Proxy // Proxy
QString proxy = m_properties->get("kdenlive:proxy"); QString proxy = m_properties->get("kdenlive:proxy");
m_originalProperties.insert(QStringLiteral("kdenlive:proxy"), proxy); m_originalProperties.insert(QStringLiteral("kdenlive:proxy"), proxy);
hlay = new QHBoxLayout; QHBoxLayout *hlay = new QHBoxLayout;
auto *bg = new QGroupBox(this); auto *bg = new QGroupBox(this);
bg->setCheckable(false); bg->setCheckable(false);
bg->setFlat(true); bg->setFlat(true);
...@@ -1046,6 +1048,7 @@ void ClipPropertiesController::slotReloadProperties() ...@@ -1046,6 +1048,7 @@ void ClipPropertiesController::slotReloadProperties()
break; break;
case ClipType::Image: case ClipType::Image:
case ClipType::AV: case ClipType::AV:
case ClipType::Playlist:
case ClipType::Video: { case ClipType::Video: {
QString proxy = m_properties->get("kdenlive:proxy"); QString proxy = m_properties->get("kdenlive:proxy");
if (proxy != m_originalProperties.value(QStringLiteral("kdenlive:proxy"))) { if (proxy != m_originalProperties.value(QStringLiteral("kdenlive:proxy"))) {
......
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