From 569e3dbeb098a79bf8aaf5f66794b3763a7159f7 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Thu, 7 Jan 2010 00:55:46 +0000 Subject: [PATCH] Fix display of font / outline color in buttons svn path=/trunk/kdenlive/; revision=4213 --- src/titlewidget.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/titlewidget.cpp b/src/titlewidget.cpp index 7ccffdf0..f14eb005 100644 --- a/src/titlewidget.cpp +++ b/src/titlewidget.cpp @@ -844,8 +844,9 @@ void TitleWidget::selectionChanged() QTextCursor cursor(i->document()); cursor.select(QTextCursor::Document); QColor color = cursor.charFormat().foreground().color(); - fontColorButton->setColor(color); textAlpha->setValue(color.alpha()); + color.setAlpha(255); + fontColorButton->setColor(color); if (!i->data(101).isNull()) { textOutline->blockSignals(true); @@ -855,8 +856,10 @@ void TitleWidget::selectionChanged() if (!i->data(102).isNull()) { textOutlineColor->blockSignals(true); textOutlineAlpha->blockSignals(true); - textOutlineColor->setColor(i->data(102).toString()); - textOutlineAlpha->setValue(QColor(i->data(102).toString()).alpha()); + color = QColor(i->data(102).toString()); + textOutlineAlpha->setValue(color.alpha()); + color.setAlpha(255); + textOutlineColor->setColor(color); textOutlineColor->blockSignals(false); textOutlineAlpha->blockSignals(false); } -- 2.39.5