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>
This commit is contained in:
Lubomir I. Ivanov 2014-10-25 12:46:42 +03:00 committed by Dirk Hohndel
parent 8b85cafa69
commit 1f1bb71d78

View file

@ -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