mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Add hoverItemChanged event to RDTreeWidget
This commit is contained in:
@@ -809,6 +809,8 @@ void RDTreeWidget::mouseMoveEvent(QMouseEvent *e)
|
||||
}
|
||||
}
|
||||
|
||||
emit hoverItemChanged(newHover);
|
||||
|
||||
emit mouseMove(e);
|
||||
|
||||
RDTreeView::mouseMoveEvent(e);
|
||||
@@ -838,6 +840,8 @@ void RDTreeWidget::leaveEvent(QEvent *e)
|
||||
m_model->itemChanged(item, {Qt::DecorationRole, Qt::BackgroundRole, Qt::ForegroundRole});
|
||||
}
|
||||
|
||||
emit hoverItemChanged(NULL);
|
||||
|
||||
RDTreeView::leaveEvent(e);
|
||||
}
|
||||
|
||||
|
||||
@@ -265,6 +265,7 @@ signals:
|
||||
void itemDoubleClicked(RDTreeWidgetItem *item, int column);
|
||||
void itemActivated(RDTreeWidgetItem *item, int column);
|
||||
void currentItemChanged(RDTreeWidgetItem *current, RDTreeWidgetItem *previous);
|
||||
void hoverItemChanged(RDTreeWidgetItem *item);
|
||||
void itemSelectionChanged();
|
||||
|
||||
public slots:
|
||||
|
||||
Reference in New Issue
Block a user