diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-08-22 14:45:00 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-08-22 15:03:13 -0700 |
commit | 438fe5dbde222c73e22441a6e39c85c8c887218b (patch) | |
tree | 54132cde79d0fb0990f7011c9376c2a28cfcf963 | |
parent | 2760f295d2c80802b905abbbd9cb8185ae6bc86d (diff) | |
download | subsurface-438fe5dbde222c73e22441a6e39c85c8c887218b.tar.gz |
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>
-rw-r--r-- | qt-ui/divelistview.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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) |