forked from qt-creator/qt-creator
Debugger: Fix double-click handling in Threads view
Change-Id: I3fb9b6ba6abcdfdf15a45b59e6500a979c40e7d0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
dbca4488ae
commit
d452f84930
@@ -251,10 +251,14 @@ bool ThreadsHandler::setData(const QModelIndex &idx, const QVariant &data, int r
|
||||
}
|
||||
|
||||
if (role == BaseTreeView::ItemViewEventRole) {
|
||||
auto menu = new QMenu;
|
||||
menu->addAction(action(SettingsDialog));
|
||||
menu->popup(data.value<ItemViewEvent>().globalPos());
|
||||
return true;
|
||||
ItemViewEvent ev = data.value<ItemViewEvent>();
|
||||
|
||||
if (ev.as<QContextMenuEvent>()) {
|
||||
auto menu = new QMenu;
|
||||
menu->addAction(action(SettingsDialog));
|
||||
menu->popup(ev.globalPos());
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user