Force double-click activation for breakpoints view

Since it also is used much for managing the breakpoints, i.e. selecting
and deleting with the delete key, and then single-click activation is
annoying since it moves the focus to the editor.

Change-Id: Ic05ec525f146e2363c4984095b9792973caa1ac6
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Eike Ziller
2019-05-03 09:14:01 +02:00
parent bc51772c1d
commit 631e2ea3e4

View File

@@ -1036,6 +1036,7 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments,
};
m_breakpointManagerView = new BaseTreeView;
m_breakpointManagerView->setActivationMode(Utils::DoubleClickActivation);
m_breakpointManagerView->setIconSize(QSize(10, 10));
m_breakpointManagerView->setWindowIcon(Icons::BREAKPOINTS.icon());
m_breakpointManagerView->setSelectionMode(QAbstractItemView::ExtendedSelection);