Dive sites: stretch name and description columns
Stretch the name and description columns in the dive site table, so that they don't start too small. This should only be a temporary solution, as it disables the save column width to preferences feature of TableView. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
d0435672ac
commit
fde80eeaa5
@ -15,6 +15,8 @@ TabDiveSite::TabDiveSite(QWidget *parent) : TabBase(parent)
|
||||
// Default: sort by name
|
||||
ui.diveSites->view()->sortByColumn(LocationInformationModel::NAME, Qt::AscendingOrder);
|
||||
ui.diveSites->view()->setSortingEnabled(true);
|
||||
ui.diveSites->view()->horizontalHeader()->setSectionResizeMode(LocationInformationModel::NAME, QHeaderView::Stretch);
|
||||
ui.diveSites->view()->horizontalHeader()->setSectionResizeMode(LocationInformationModel::DESCRIPTION, QHeaderView::Stretch);
|
||||
|
||||
// Show only the first few columns
|
||||
for (int i = LocationInformationModel::LOCATION; i < LocationInformationModel::COLUMNS; ++i)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user