From 57cde56158f6dd3bf198fb6ae1fca51e96038919 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 9 Jun 2012 13:01:19 +0200 Subject: Inline renaming: ESC should cancel the renaming When emitting the roleEditingCanceled-signal it must be prevented that a roleEditingFinished-signal is emitted because of some action taken in the receiver-slot. BUG: 301480 FIXED-IN: 4.9.0 --- src/kitemviews/private/kitemlistroleeditor.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/kitemviews/private/kitemlistroleeditor.h') diff --git a/src/kitemviews/private/kitemlistroleeditor.h b/src/kitemviews/private/kitemlistroleeditor.h index 652bd904c..aa2c97754 100644 --- a/src/kitemviews/private/kitemlistroleeditor.h +++ b/src/kitemviews/private/kitemlistroleeditor.h @@ -64,10 +64,17 @@ private slots: */ void autoAdjustSize(); +private: + /** + * Emits the signal roleEditingFinished if m_blockFinishedSignal + * is false. + */ + void emitRoleEditingFinished(); + private: int m_index; QByteArray m_role; - + bool m_blockFinishedSignal; }; #endif -- cgit v1.3.1