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
@ -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…
x
Reference in New Issue
Block a user