QTabWidget: use QSignalBlocker
Change-Id: I4621e6b504c531903210242cf0f1cf12e7538784 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
parent
91c682e719
commit
abbffdd4be
@ -759,11 +759,10 @@ void QTabWidgetPrivate::_q_removeTab(int index)
|
||||
|
||||
void QTabWidgetPrivate::_q_tabMoved(int from, int to)
|
||||
{
|
||||
stack->blockSignals(true);
|
||||
const QSignalBlocker blocker(stack);
|
||||
QWidget *w = stack->widget(from);
|
||||
stack->removeWidget(w);
|
||||
stack->insertWidget(to, w);
|
||||
stack->blockSignals(false);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user