mirror of
https://github.com/lubosz/overte.git
synced 2025-04-09 08:22:30 +02:00
grow status column when there are long results
This commit is contained in:
parent
4863c924d1
commit
b520640fef
1 changed files with 4 additions and 1 deletions
|
@ -88,10 +88,13 @@ int ResultsWindow::addPendingResultRow(const QString& fileName, const QDir& outp
|
|||
}
|
||||
|
||||
void ResultsWindow::changeStatusForRow(int rowIndex, const QString& result) {
|
||||
const int STATUS_COLUMN = 1;
|
||||
auto statusItem = new QTableWidgetItem(result);
|
||||
statusItem->setFlags(statusItem->flags() & ~Qt::ItemIsEditable);
|
||||
_resultsTable->setItem(rowIndex, 1, statusItem);
|
||||
_resultsTable->setItem(rowIndex, STATUS_COLUMN, statusItem);
|
||||
|
||||
// resize the row for the new contents
|
||||
_resultsTable->resizeRowToContents(rowIndex);
|
||||
// reszie the column for the new contents
|
||||
_resultsTable->resizeColumnToContents(STATUS_COLUMN);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue