mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 08:40:53 +01:00
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:
@@ -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()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user