mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue