]> git.sesse.net Git - kdenlive/commitdiff
Fix display of font / outline color in buttons
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Thu, 7 Jan 2010 00:55:46 +0000 (00:55 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Thu, 7 Jan 2010 00:55:46 +0000 (00:55 +0000)
svn path=/trunk/kdenlive/; revision=4213

src/titlewidget.cpp

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