mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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();
|
settings.endGroup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int defaultWidth[] = { 70, 130, 100, 50, 50, 50, 50, 70, 50, 50, 70, 50, 50, 500 };
|
||||||
void DiveListView::setupUi()
|
void DiveListView::setupUi()
|
||||||
{
|
{
|
||||||
QSettings settings;
|
QSettings settings;
|
||||||
|
@ -90,7 +91,7 @@ void DiveListView::setupUi()
|
||||||
if (width.isValid())
|
if (width.isValid())
|
||||||
setColumnWidth(i, width.toInt());
|
setColumnWidth(i, width.toInt());
|
||||||
else
|
else
|
||||||
setColumnWidth(i, 100);
|
setColumnWidth(i, defaultWidth[i]);
|
||||||
}
|
}
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
if (firstRun)
|
if (firstRun)
|
||||||
|
|
Loading…
Add table
Reference in a new issue