From 0736b9f3535c17ed54830f815077171a83b17e7a Mon Sep 17 00:00:00 2001 From: Vincent PINON Date: Sun, 27 May 2012 11:28:22 +0200 Subject: [PATCH] Titler: apply background color to the whole scene (scrolling titles more readable) --- src/titlewidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/titlewidget.cpp b/src/titlewidget.cpp index e1a87c4e..d2e35d85 100644 --- a/src/titlewidget.cpp +++ b/src/titlewidget.cpp @@ -169,7 +169,7 @@ TitleWidget::TitleWidget(KUrl url, Timecode tc, QString projectTitlePath, Render title_duration->setInputMask(m_tc.mask()); title_duration->setText(m_tc.reformatSeparators(KdenliveSettings::title_duration())); - connect(backgroundColor, SIGNAL(clicked()), this, SLOT(slotChangeBackground())) ; + connect(backgroundColor, SIGNAL(changed(const QColor &)), this, SLOT(slotChangeBackground())) ; connect(backgroundAlpha, SIGNAL(valueChanged(qreal, bool)), this, SLOT(slotChangeBackground())) ; connect(fontColorButton, SIGNAL(changed(const QColor &)), this, SLOT(slotUpdateText())) ; @@ -1472,6 +1472,7 @@ void TitleWidget::updateAxisButtons(QGraphicsItem *i) void TitleWidget::slotChangeBackground() { QColor color = backgroundColor->color(); + m_scene->setBackgroundBrush(QBrush(color)); color.setAlpha(backgroundAlpha->value()); m_frameBorder->setBrush(QBrush(color)); } -- 2.39.2