summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-22 14:45:00 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-22 15:03:13 -0700
commit438fe5dbde222c73e22441a6e39c85c8c887218b (patch)
tree54132cde79d0fb0990f7011c9376c2a28cfcf963 /qt-ui
parent2760f295d2c80802b905abbbd9cb8185ae6bc86d (diff)
downloadsubsurface-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>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/divelistview.cpp3
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)