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:
parent
8b85cafa69
commit
1f1bb71d78
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user