]> git.sesse.net Git - kdenlive/commitdiff
Titler: apply background color to the whole scene (scrolling titles more readable)
authorVincent PINON <vincent.pinon@laposte.net>
Sun, 27 May 2012 09:28:22 +0000 (11:28 +0200)
committerVincent PINON <vincent.pinon@laposte.net>
Sun, 27 May 2012 09:28:22 +0000 (11:28 +0200)
src/titlewidget.cpp

index e1a87c4eaac84d12515f052561c6e11451fae7eb..d2e35d8501d11927495654db7dce0d49fc82072e 100644 (file)
@@ -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));
 }