Skip to content

Commit

Permalink
Merge pull request #173 from epasveer/156-ux-bug-or-flaw-scaling-beha…
Browse files Browse the repository at this point in the history
…vior-turns-logger-tab-trivially-fast-into-unusable

Improve the column resizing for the Variable Logger.
  • Loading branch information
epasveer authored Oct 15, 2023
2 parents 76bb5c2 + d18d307 commit 6521e30
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/SeerVariableLoggerBrowserWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ void SeerVariableLoggerBrowserWidget::handleText (const QString& text) {
QList<QTreeWidgetItem*> matches = variablesTreeWidget->findItems(id_text, Qt::MatchExactly, 0);

if (matches.size() > 0) {
matches.first()->setText(2, ""); // Overwrite "name" with "" because it's not a valid "name".
matches.first()->setText(3, Seer::filterEscapes(msg_text));
}
}
Expand Down Expand Up @@ -124,11 +125,7 @@ void SeerVariableLoggerBrowserWidget::handleEvaluateVariableExpression (int expr
variablesTreeWidget->addTopLevelItem(item);
}

// Resize columns.
variablesTreeWidget->resizeColumnToContents(0);
variablesTreeWidget->resizeColumnToContents(1);
variablesTreeWidget->resizeColumnToContents(2);
variablesTreeWidget->resizeColumnToContents(3);
// Resize columns done later in handleText().
}

void SeerVariableLoggerBrowserWidget::addVariableExpression (QString expression) {
Expand Down

0 comments on commit 6521e30

Please sign in to comment.