From 438fe5dbde222c73e22441a6e39c85c8c887218b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 22 Aug 2014 14:45:00 -0700 Subject: 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 --- qt-ui/divelistview.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp index 0d0d999f4..3c71699a1 100644 --- a/qt-ui/divelistview.cpp +++ b/qt-ui/divelistview.cpp @@ -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) -- cgit v1.2.3-70-g09d2