diff options
author | Olivier Goffart <olivier.goffart@nokia.com> | 2010-08-30 22:10:02 (GMT) |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2010-08-30 22:10:02 (GMT) |
commit | 3509fce85cc317168aa302b01a59d4be380b10a8 (patch) | |
tree | 562a9fdebe2921981c591e1436b191235630dd69 /src | |
parent | 372de819f593ca5da54f2395e6795080b34b9354 (diff) | |
download | Qt-3509fce85cc317168aa302b01a59d4be380b10a8.zip Qt-3509fce85cc317168aa302b01a59d4be380b10a8.tar.gz Qt-3509fce85cc317168aa302b01a59d4be380b10a8.tar.bz2 |
Fix compilation on mac.
Commit d34287af6fc1c forgot to update this platform dependent code.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/itemviews/qabstractitemview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/itemviews/qabstractitemview.cpp b/src/gui/itemviews/qabstractitemview.cpp index 7ddd339..0842ee8 100644 --- a/src/gui/itemviews/qabstractitemview.cpp +++ b/src/gui/itemviews/qabstractitemview.cpp @@ -2336,7 +2336,7 @@ void QAbstractItemView::keyPressEvent(QKeyEvent *event) case Qt::Key_Return: // Propagate the enter if you couldn't edit the item and there are no // current editors (if there are editors, the event was most likely propagated from it). - if (!edit(currentIndex(), EditKeyPressed, event) && d->editors.isEmpty()) + if (!edit(currentIndex(), EditKeyPressed, event) && d->editorIndexHash.isEmpty()) event->ignore(); break; #else @@ -2609,7 +2609,7 @@ void QAbstractItemView::updateEditorGeometries() } //we hide and release the editor outside of the loop because it might change the focus and try - //to change the d->editors list. + //to change the editors hashes. for (int i = 0; i < editorsToHide.count(); ++i) { editorsToHide.at(i)->hide(); } |