diff options
| author | Frank Reininghaus <[email protected]> | 2012-12-07 22:15:32 +0100 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2012-12-07 22:15:32 +0100 |
| commit | e97c050157890dd1adf14d98bbed4aa86af98354 (patch) | |
| tree | 9cc9009b03c99c82ab8bf4b82b9345815983c691 /src/kitemviews/private/kitemlistroleeditor.h | |
| parent | a1353a9d48bc8a45516f7d9323c5a9f99194b310 (diff) | |
Fix keyboard focus handling after renaming items inline
This reverts 951cb9c35d7a9ef814b3de5b359915968da9b881 and
3143acc084d54d43df469b54762bfa10a7050a9f, and fixes the crash caused by
nested event loops by delaying the deletion of the KItemListRoleEditor
until the next item is renamed inline.
BUG: 311206
FIXED-IN: 4.9.5
REVIEW: 107606
Diffstat (limited to 'src/kitemviews/private/kitemlistroleeditor.h')
| -rw-r--r-- | src/kitemviews/private/kitemlistroleeditor.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/kitemviews/private/kitemlistroleeditor.h b/src/kitemviews/private/kitemlistroleeditor.h index a2f705808..aa2c97754 100644 --- a/src/kitemviews/private/kitemlistroleeditor.h +++ b/src/kitemviews/private/kitemlistroleeditor.h @@ -47,15 +47,6 @@ public: void setRole(const QByteArray& role); QByteArray role() const; - /** - * Calls deleteLater() if no event is being handled at the moment. - * Otherwise, the deletion is deferred until the event handling is - * finished. This prevents that the deletion happens inside a nested - * event loop which might be run in contextMenuEvent() or - * mouseMoveEvent() because this would probably cause a crash. - */ - void deleteWhenIdle(); - virtual bool eventFilter(QObject* watched, QEvent* event); signals: @@ -64,7 +55,6 @@ signals: protected: virtual bool event(QEvent* event); - virtual bool viewportEvent(QEvent* event); virtual void keyPressEvent(QKeyEvent* event); private slots: @@ -85,8 +75,6 @@ private: int m_index; QByteArray m_role; bool m_blockFinishedSignal; - int m_eventHandlingLevel; - bool m_deleteAfterEventHandling; }; #endif |
