Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Make render widget a few pixels smaller

parent c5f5e2e5
......@@ -104,7 +104,7 @@ RenderWidget::RenderWidget(const QString &projectfolder, bool enableProxy, MltVi
m_view.buttonRender->setEnabled(false);
m_view.buttonGenerateScript->setEnabled(false);
m_view.rescale_box->setEnabled(false);
setRescaleEnabled(false);
m_view.guides_box->setVisible(false);
m_view.open_dvd->setVisible(false);
m_view.create_chapter->setVisible(false);
......@@ -183,7 +183,7 @@ RenderWidget::RenderWidget(const QString &projectfolder, bool enableProxy, MltVi
connect(m_view.buttonClose, SIGNAL(clicked()), this, SLOT(hide()));
connect(m_view.buttonClose2, SIGNAL(clicked()), this, SLOT(hide()));
connect(m_view.buttonClose3, SIGNAL(clicked()), this, SLOT(hide()));
connect(m_view.rescale, SIGNAL(toggled(bool)), m_view.rescale_box, SLOT(setEnabled(bool)));
connect(m_view.rescale, SIGNAL(toggled(bool)), this, SLOT(setRescaleEnabled(bool)));
connect(m_view.destination_list, SIGNAL(activated(int)), this, SLOT(refreshCategory()));
connect(m_view.out_file, SIGNAL(textChanged(const QString &)), this, SLOT(slotUpdateButtons()));
connect(m_view.out_file, SIGNAL(urlSelected(const KUrl &)), this, SLOT(slotUpdateButtons(const KUrl &)));
......@@ -1311,10 +1311,10 @@ void RenderWidget::refreshParams()
if (params.contains(" s=") || params.startsWith("s=") || destination == "audioonly") {
// profile has a fixed size, do not allow resize
m_view.rescale->setEnabled(false);
m_view.rescale_box->setEnabled(false);
setRescaleEnabled(false);
} else {
m_view.rescale->setEnabled(true);
m_view.rescale_box->setEnabled(m_view.rescale->isChecked());
setRescaleEnabled(m_view.rescale->isChecked());
}
KUrl url = filenameWithExtension(m_view.out_file->url(), extension);
m_view.out_file->setUrl(url);
......@@ -2143,3 +2143,10 @@ bool RenderWidget::proxyRendering()
{
return m_view.proxy_render->isChecked();
}
void RenderWidget::setRescaleEnabled(bool enable)
{
for (int i = 0; i < m_view.rescale_box->layout()->count(); i++) {
if (m_view.rescale_box->itemAt(i)->widget()) m_view.rescale_box->itemAt(i)->widget()->setEnabled(enable);
}
}
......@@ -178,6 +178,8 @@ private slots:
void slotSwitchAspectRatio();
/** @brief Update export audio label depending on current settings. */
void slotUpdateAudioLabel(int ix);
/** @brief Enable / disable the rescale options. */
void setRescaleEnabled(bool enable);
private:
Ui::RenderWidget_UI m_view;
......
This diff is collapsed.
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