mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Allow double clicking on resource annotations
This commit is contained in:
@@ -65,6 +65,12 @@ AnnotationDisplay::AnnotationDisplay(ICaptureContext &ctx, bool standalone, QWid
|
||||
QObject::connect(m_Tree, &RDTreeWidget::customContextMenu, this,
|
||||
&AnnotationDisplay::customContextMenu);
|
||||
QObject::connect(m_Tree, &RDTreeWidget::itemClicked, this, &AnnotationDisplay::itemClicked);
|
||||
// treat a double click the same as a single click on the go column, if we have one
|
||||
QObject::connect(m_Tree, &RDTreeWidget::itemDoubleClicked,
|
||||
[this](RDTreeWidgetItem *item, int column) {
|
||||
if(m_HasGoColumn)
|
||||
itemClicked(item, 2);
|
||||
});
|
||||
|
||||
m_Tree->setHoverIconColumn(2, Icons::action(), Icons::action_hover());
|
||||
m_Tree->setHoverRole(HoverRole);
|
||||
|
||||
Reference in New Issue
Block a user