mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Desktop: Add Auto-sizing to the Extra Info Table.
Add auto-sizing to the extra info table - resize the columns so that all rows are shown in full whenever the data is updated. Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
parent
5bad522390
commit
8627f6fc4a
1 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,10 @@ void TabDiveExtraInfo::updateData(const std::vector<dive *> &, dive *currentDive
|
|||
const struct divecomputer *currentdc = get_dive_dc(currentDive, currentDC);
|
||||
if (currentdc)
|
||||
extraDataModel->updateDiveComputer(currentdc);
|
||||
|
||||
ui->extraData->setVisible(false); // This will cause the resize to include rows outside the current viewport
|
||||
ui->extraData->resizeColumnsToContents();
|
||||
ui->extraData->setVisible(true);
|
||||
}
|
||||
|
||||
void TabDiveExtraInfo::clear()
|
||||
|
|
Loading…
Add table
Reference in a new issue