MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / onLayoutChanged

Method onLayoutChanged

Components/BackgroundTasksDialog.cpp:161–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161void
162BackgroundTasksDialog::onLayoutChanged(void)
163{
164 int rows = this->model->rowCount(QModelIndex());
165
166 if (rows > this->prevRows)
167 this->ui->tableView->resizeColumnsToContents();
168 else if (rows == this->prevRows)
169 this->ui->tableView->resizeColumnToContents(2);
170
171 this->prevRows = rows;
172
173 this->ui->tableView->setColumnWidth(3, 120);
174 this->ui->cancelAllButton->setEnabled(rows > 0);
175}
176
177void
178BackgroundTasksDialog::onCancelClicked(QModelIndex index)

Callers

nothing calls this directly

Calls 2

rowCountMethod · 0.45
setEnabledMethod · 0.45

Tested by

no test coverage detected