diff options
| -rw-r--r-- | Swift/QtUI/QtColorToolButton.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Swift/QtUI/QtColorToolButton.cpp b/Swift/QtUI/QtColorToolButton.cpp index b349a47..6452cf4 100644 --- a/Swift/QtUI/QtColorToolButton.cpp +++ b/Swift/QtUI/QtColorToolButton.cpp @@ -30,18 +30,19 @@ void QtColorToolButton::setColor(const QColor& color) color_ = color; setColorIcon(color_); emit colorChanged(color_); } } void QtColorToolButton::onClicked() { QColor c = QColorDialog::getColor(color_, this); + window()->raise(); if (c.isValid()) { setColor(c); } } void QtColorToolButton::setColorIcon(const QColor& color) { QPixmap pix(iconSize()); pix.fill(color.isValid() ? color : Qt::transparent); |
Swift