From: Jean-Baptiste Mardelle Date: Thu, 7 Jan 2010 00:55:46 +0000 (+0000) Subject: Fix display of font / outline color in buttons X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=569e3dbeb098a79bf8aaf5f66794b3763a7159f7;p=kdenlive Fix display of font / outline color in buttons svn path=/trunk/kdenlive/; revision=4213 --- 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); }