QColorDialog: use QSignalBlocker

Change-Id: Id680d9b934760cdd6a20579518199bd388b56e5d
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
Marc Mutz 2013-10-25 19:47:22 +02:00 committed by The Qt Project
parent 0326c036d6
commit 3549dfe8b8

View File

@ -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);
}
};