diff options
author | Daniel Teske <daniel.teske@digia.com> | 2014-04-09 17:59:42 +0200 |
---|---|---|
committer | Daniel Teske <daniel.teske@digia.com> | 2014-04-16 12:29:26 +0200 |
commit | 6097d8e611135df256af02fd833c52389deb4521 (patch) | |
tree | afe73249bc18c37232061387ec739aba01ddbbd1 /src/plugins/coreplugin/editormanager/openeditorsview.h | |
parent | 406ccbdef59e751afd0c83708ea8cb59ad7a3705 (diff) | |
download | qt-creator-6097d8e611135df256af02fd833c52389deb4521.tar.gz |
Sidebar: Open Editors: Simplfy code by using Utils::TreeView
Change-Id: Iebd68db3fa0c0a4ca05da2c5c764dda9ef1c8eaa
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/coreplugin/editormanager/openeditorsview.h')
-rw-r--r-- | src/plugins/coreplugin/editormanager/openeditorsview.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/coreplugin/editormanager/openeditorsview.h b/src/plugins/coreplugin/editormanager/openeditorsview.h index c14fa478bd..d4e8197082 100644 --- a/src/plugins/coreplugin/editormanager/openeditorsview.h +++ b/src/plugins/coreplugin/editormanager/openeditorsview.h @@ -30,6 +30,7 @@ #ifndef OPENEDITORSVIEW_H #define OPENEDITORSVIEW_H +#include <utils/itemviews.h> #include <coreplugin/inavigationwidgetfactory.h> #include <QAbstractProxyModel> @@ -80,7 +81,7 @@ public: mutable QModelIndex pressedIndex; }; -class OpenEditorsWidget : public QTreeView +class OpenEditorsWidget : public Utils::TreeView { Q_OBJECT @@ -91,7 +92,7 @@ public: bool eventFilter(QObject *obj, QEvent *event); private slots: - void handleClicked(const QModelIndex &); + void handleActivated(const QModelIndex &); void handlePressed(const QModelIndex &); void updateCurrentItem(Core::IEditor*); void contextMenuRequested(QPoint pos); |