Present the breakpoint script commands better in the UI.

This commit is contained in:
Ernie Pasveer
2023-07-13 12:10:10 -05:00
parent 11a905835a
commit b5246bd34b
3 changed files with 20 additions and 0 deletions
+6
View File
@@ -138,6 +138,8 @@ void SeerBreakpointsBrowserWidget::handleText (const QString& text) {
continue;
}
script_text = Seer::filterBookends(Seer::parseCommaList(script_text, '{', '}'), '"', '"').join('\n');
// Add the level to the tree.
QTreeWidgetItem* topItem = new QTreeWidgetItem;
topItem->setText(0, number_text);
@@ -156,6 +158,10 @@ void SeerBreakpointsBrowserWidget::handleText (const QString& text) {
topItem->setText(13, script_text);
topItem->setText(14, original_location_text);
for (int i=0; i<topItem->columnCount(); i++) {
topItem->setTextAlignment(i, Qt::AlignLeft|Qt::AlignTop);
}
breakpointsTreeWidget->addTopLevelItem(topItem);
}
}