mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
m_color_pb button set styleSheet to min-height to 1.5em; and border-radius:to 4px;
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3259 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 -> setStyleSheet(QString("background-color: %1").arg(color.name()));
|
ui -> m_color_pb -> setStyleSheet(QString("background-color: %1; min-height: 1.5em; border-radius: 4px;").arg(color.name()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user