diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2010-09-06 07:07:00 (GMT) |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2010-09-06 07:07:00 (GMT) |
commit | 6892d7adf00d0481103a48a1ff89ad0be2a1143b (patch) | |
tree | 188d10557683fb95defc966829ff3d14bc404e37 /tools/designer/src/lib/shared | |
parent | b9fb38de38f364a4c51d301c8e3d2dbdb90399e6 (diff) | |
download | Qt-6892d7adf00d0481103a48a1ff89ad0be2a1143b.zip Qt-6892d7adf00d0481103a48a1ff89ad0be2a1143b.tar.gz Qt-6892d7adf00d0481103a48a1ff89ad0be2a1143b.tar.bz2 |
Designer: Fix action editor scrolling.
In overwritten virtual QAbstractItemView::currentChanged,
invoke base implementation.
Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
Task-number: QTCREATORBUG-2249
Diffstat (limited to 'tools/designer/src/lib/shared')
-rw-r--r-- | tools/designer/src/lib/shared/actionrepository.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/designer/src/lib/shared/actionrepository.cpp b/tools/designer/src/lib/shared/actionrepository.cpp index 1076ff4..a54c1e7 100644 --- a/tools/designer/src/lib/shared/actionrepository.cpp +++ b/tools/designer/src/lib/shared/actionrepository.cpp @@ -397,9 +397,10 @@ void ActionTreeView::contextMenuEvent(QContextMenuEvent *event) emit contextMenuRequested(event, m_model->actionAt(indexAt(event->pos()))); } -void ActionTreeView::currentChanged(const QModelIndex ¤t, const QModelIndex &/*previous*/) +void ActionTreeView::currentChanged(const QModelIndex ¤t, const QModelIndex &previous) { emit currentChanged(m_model->actionAt(current)); + QTreeView::currentChanged(current, previous); } void ActionTreeView::slotActivated(const QModelIndex &index) @@ -478,9 +479,10 @@ void ActionListView::contextMenuEvent(QContextMenuEvent *event) emit contextMenuRequested(event, m_model->actionAt(indexAt(event->pos()))); } -void ActionListView::currentChanged(const QModelIndex ¤t, const QModelIndex & /*previous*/) +void ActionListView::currentChanged(const QModelIndex ¤t, const QModelIndex &previous) { emit currentChanged(m_model->actionAt(current)); + QListView::currentChanged(current, previous); } void ActionListView::slotActivated(const QModelIndex &index) |