QColorDialog: use QSignalBlocker
Change-Id: Id680d9b934760cdd6a20579518199bd388b56e5d Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
parent
0326c036d6
commit
3549dfe8b8
@ -883,10 +883,8 @@ public:
|
||||
QColSpinBox(QWidget *parent)
|
||||
: QSpinBox(parent) { setRange(0, 255); }
|
||||
void setValue(int i) {
|
||||
bool block = signalsBlocked();
|
||||
blockSignals(true);
|
||||
const QSignalBlocker blocker(this);
|
||||
QSpinBox::setValue(i);
|
||||
blockSignals(block);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user