From: Vincent P. <vin...@la...> - 2012-05-27 09:31:27
|
Git commit 0736b9f3535c17ed54830f815077171a83b17e7a by Vincent PINON. Committed on 27/05/2012 at 11:28. Pushed by vpinon into branch 'master'. Titler: apply background color to the whole scene (scrolling titles more readable) M +2 -1 src/titlewidget.cpp http://commits.kde.org/kdenlive/0736b9f3535c17ed54830f815077171a83b17e7a diff --git a/src/titlewidget.cpp b/src/titlewidget.cpp index e1a87c4..d2e35d8 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)); } |