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

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3257 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810
2014-08-07 21:02:06 +00:00
parent d8976eead4
commit 1054c672ad

View File

@@ -222,7 +222,7 @@ void ConductorPropertiesWidget::on_m_color_pb_clicked() {
void ConductorPropertiesWidget::setColorButton(const QColor &color) { void ConductorPropertiesWidget::setColorButton(const QColor &color) {
QPalette palette; QPalette palette;
palette.setColor(QPalette::Button, color); palette.setColor(QPalette::Button, color);
ui -> m_color_pb -> setPalette(palette); ui -> m_color_pb -> setStyleSheet(QString("background-color: %1").arg(color.name()));
} }
/** /**