forked from qt-creator/qt-creator
Debugger: Reduce line noise
Move some function out of the DebuggerCore "namespace", to avoid one indirection and removes clutter in the calling code. Change-Id: I1c870d5c7eeade32fa63dedf581490fbb090cd6a Reviewed-by: Christian Stenger <christian.stenger@digia.com> Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -50,13 +50,13 @@ ThreadsTreeView::ThreadsTreeView()
|
||||
void ThreadsTreeView::rowActivated(const QModelIndex &index)
|
||||
{
|
||||
ThreadId id = ThreadId(index.data(ThreadData::IdRole).toLongLong());
|
||||
debuggerCore()->currentEngine()->selectThread(id);
|
||||
currentEngine()->selectThread(id);
|
||||
}
|
||||
|
||||
void ThreadsTreeView::contextMenuEvent(QContextMenuEvent *ev)
|
||||
{
|
||||
QMenu menu;
|
||||
menu.addAction(debuggerCore()->action(SettingsDialog));
|
||||
menu.addAction(action(SettingsDialog));
|
||||
menu.exec(ev->globalPos());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user