summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2014-10-25 12:46:42 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-10-27 07:38:34 -0700
commit1f1bb71d78523e4d131444092be44efb3b27b4e8 (patch)
tree6ff2395912af6d5b83475edc055c658f99436bbd /qt-ui
parent8b85cafa69f2595bad3520402f0f4078e3c58730 (diff)
downloadsubsurface-1f1bb71d78523e4d131444092be44efb3b27b4e8.tar.gz
divelistview.cpp: move a variable in a Q_OS_MAC branch
Not used on other OS and triggers a warning. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/divelistview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp
index 01d53794b..474cb0661 100644
--- a/qt-ui/divelistview.cpp
+++ b/qt-ui/divelistview.cpp
@@ -49,12 +49,12 @@ DiveListView::DiveListView(QWidget *parent) : QTreeView(parent), mouseClickSelec
header()->setContextMenuPolicy(Qt::ActionsContextMenu);
const QFontMetrics metrics(defaultModelFont());
- int ht = metrics.height();
int em = metrics.width('m');
int zw = metrics.width('0');
// Fixes for the layout needed for mac
#ifdef Q_OS_MAC
+ int ht = metrics.height();
header()->setMinimumHeight(ht + 10);
#endif