forked from qt-creator/qt-creator
debugger: use new actions for watchers window/manager communication
This commit is contained in:
@@ -125,19 +125,16 @@ WatchWindow::WatchWindow(Type type, QWidget *parent)
|
||||
|
||||
void WatchWindow::expandNode(const QModelIndex &idx)
|
||||
{
|
||||
//QModelIndex mi0 = idx.sibling(idx.row(), 0);
|
||||
//QString iname = model()->data(mi0, INameRole).toString();
|
||||
//QString name = model()->data(mi0, Qt::DisplayRole).toString();
|
||||
emit requestExpandChildren(idx);
|
||||
QModelIndex mi0 = idx.sibling(idx.row(), 0);
|
||||
QVariant iname = model()->data(mi0, INameRole);
|
||||
theDebuggerAction(ExpandItem)->trigger(iname);
|
||||
}
|
||||
|
||||
void WatchWindow::collapseNode(const QModelIndex &idx)
|
||||
{
|
||||
//QModelIndex mi0 = idx.sibling(idx.row(), 0);
|
||||
//QString iname = model()->data(mi0, INameRole).toString();
|
||||
//QString name = model()->data(mi0, Qt::DisplayRole).toString();
|
||||
//qDebug() << "COLLAPSE NODE " << idx;
|
||||
emit requestCollapseChildren(idx);
|
||||
QModelIndex mi0 = idx.sibling(idx.row(), 0);
|
||||
QVariant iname = model()->data(mi0, INameRole);
|
||||
theDebuggerAction(CollapseItem)->trigger(iname);
|
||||
}
|
||||
|
||||
void WatchWindow::keyPressEvent(QKeyEvent *ev)
|
||||
|
||||
Reference in New Issue
Block a user