mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Make divelist header corrections Mac specific
The +10 pixels fix was introduced to fix some layout issue on Mac ways back, but it breaks things on Android. This makes sure this only gets applied when build for mac. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4722104e1c
commit
5cec965cb7
1 changed files with 3 additions and 0 deletions
|
@ -42,8 +42,11 @@ DiveListView::DiveListView(QWidget *parent) : QTreeView(parent), mouseClickSelec
|
|||
setSortingEnabled(false);
|
||||
setContextMenuPolicy(Qt::DefaultContextMenu);
|
||||
header()->setContextMenuPolicy(Qt::ActionsContextMenu);
|
||||
#ifdef Q_OS_MAC
|
||||
// Fixes for the layout needed for mac
|
||||
const QFontMetrics metrics(defaultModelFont());
|
||||
header()->setMinimumHeight(metrics.height() + 10);
|
||||
#endif
|
||||
header()->setStretchLastSection(true);
|
||||
QAction *showSearchBox = new QAction(tr("Show Search Box"), this);
|
||||
showSearchBox->setShortcut(Qt::CTRL + Qt::Key_F);
|
||||
|
|
Loading…
Reference in a new issue