[qet] [3257] Bug fix: conductorpropertieswidget, the color button now shows the true color of the conductor color in other style as windowsvista GTK etc...

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 3257
Author:   scorpio810
Date:     2014-08-07 23:02:06 +0200 (Thu, 07 Aug 2014)
Log Message:
-----------
Bug fix: conductorpropertieswidget, the color button now shows the true color of the conductor color in other style as windowsvista GTK etc...

Modified Paths:
--------------
    trunk/sources/ui/conductorpropertieswidget.cpp

Modified: trunk/sources/ui/conductorpropertieswidget.cpp
===================================================================
--- trunk/sources/ui/conductorpropertieswidget.cpp	2014-08-07 20:52:44 UTC (rev 3256)
+++ trunk/sources/ui/conductorpropertieswidget.cpp	2014-08-07 21:02:06 UTC (rev 3257)
@@ -222,7 +222,7 @@
 void ConductorPropertiesWidget::setColorButton(const QColor &color) {
 	QPalette palette;
 	palette.setColor(QPalette::Button, color);
-	ui -> m_color_pb -> setPalette(palette);
+	ui -> m_color_pb -> setStyleSheet(QString("background-color: %1").arg(color.name()));
 }
 
 /**


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/