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:
Dirk Hohndel 2014-08-22 14:45:00 -07:00
parent 2760f295d2
commit 438fe5dbde

View file

@ -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)