mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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);
|
header()->setContextMenuPolicy(Qt::ActionsContextMenu);
|
||||||
|
|
||||||
const QFontMetrics metrics(defaultModelFont());
|
const QFontMetrics metrics(defaultModelFont());
|
||||||
int ht = metrics.height();
|
|
||||||
int em = metrics.width('m');
|
int em = metrics.width('m');
|
||||||
int zw = metrics.width('0');
|
int zw = metrics.width('0');
|
||||||
|
|
||||||
// Fixes for the layout needed for mac
|
// Fixes for the layout needed for mac
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
|
int ht = metrics.height();
|
||||||
header()->setMinimumHeight(ht + 10);
|
header()->setMinimumHeight(ht + 10);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue