From 1f1bb71d78523e4d131444092be44efb3b27b4e8 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Sat, 25 Oct 2014 12:46:42 +0300 Subject: [PATCH] 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 Signed-off-by: Dirk Hohndel --- qt-ui/divelistview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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