mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Divelist: Use more sensible default column widths
Having 100px wide columns was simplistic and stupid. It was never intended to stay that way. See #712 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2760f295d2
commit
438fe5dbde
1 changed files with 2 additions and 1 deletions
|
@ -73,6 +73,7 @@ DiveListView::~DiveListView()
|
|||
settings.endGroup();
|
||||
}
|
||||
|
||||
static int defaultWidth[] = { 70, 130, 100, 50, 50, 50, 50, 70, 50, 50, 70, 50, 50, 500 };
|
||||
void DiveListView::setupUi()
|
||||
{
|
||||
QSettings settings;
|
||||
|
@ -90,7 +91,7 @@ void DiveListView::setupUi()
|
|||
if (width.isValid())
|
||||
setColumnWidth(i, width.toInt());
|
||||
else
|
||||
setColumnWidth(i, 100);
|
||||
setColumnWidth(i, defaultWidth[i]);
|
||||
}
|
||||
settings.endGroup();
|
||||
if (firstRun)
|
||||
|
|
Loading…
Reference in a new issue