layout2->addWidget(m_config->getShowHideButton());
QToolButton *buttonShowLines = new QToolButton(m_config);
- // TODO: Better Icon
+ // TODO: Better Icons
buttonShowLines->setIcon(KIcon("insert-horizontal-rule"));
buttonShowLines->setToolTip(i18n("Show/Hide the lines connecting the corners"));
buttonShowLines->setCheckable(true);
+ buttonShowLines->setChecked(KdenliveSettings::onmonitoreffects_cornersshowlines());
connect(buttonShowLines, SIGNAL(toggled(bool)), this, SLOT(slotShowLines(bool)));
m_config->addWidget(buttonShowLines, 0, 2);
+ QToolButton *buttonShowControls = new QToolButton(m_config);
+ buttonShowControls->setIcon(KIcon("transform-move"));
+ buttonShowControls->setToolTip(i18n("Show additional controls"));
+ buttonShowControls->setCheckable(true);
+ buttonShowControls->setChecked(KdenliveSettings::onmonitoreffects_cornersshowcontrols());
+ connect(buttonShowControls, SIGNAL(toggled(bool)), this, SLOT(slotShowControls(bool)));
+ m_config->addWidget(buttonShowControls, 0, 3);
int width = m_monitor->render->frameRenderWidth();
int height = m_monitor->render->renderHeight();
m_item->update();
}
+void CornersWidget::slotShowControls(bool show)
+{
+ KdenliveSettings::setOnmonitoreffects_cornersshowcontrols(show);
+ m_item->update();
+}
+
void CornersWidget::slotResetCorner1()
{
blockSignals(true);