From 0031b64df74bd80cbb0205f476531111bcc87d58 Mon Sep 17 00:00:00 2001 From: Henrik Brautaset Aronsen Date: Fri, 7 Jun 2013 12:23:48 +0200 Subject: Disable Document Mode for MainTab on MacOSX Commit c4f06dc536392e31a477e592d30fb946f1499595 introduced Document Mode on the MainTab QTabWidget. This doesn't look good on MacOSX. Signed-off-by: Henrik Brautaset Aronsen Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 6 +++++- qt-ui/maintab.ui | 3 --- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index b9b5d0ab7..080ebdf44 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -27,7 +27,11 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent), ui->weights->setModel(weightModel); ui->diveNotesMessage->hide(); ui->diveNotesMessage->setCloseButtonVisible(false); - +#ifdef __APPLE__ + setDocumentMode(false); +#else + setDocumentMode(true); +#endif // we start out with the fields read-only; once things are // filled from a dive, they are made writeable ui->location->setReadOnly(true); diff --git a/qt-ui/maintab.ui b/qt-ui/maintab.ui index 55d4f3a54..c05589d20 100644 --- a/qt-ui/maintab.ui +++ b/qt-ui/maintab.ui @@ -16,9 +16,6 @@ 3 - - true - Dive Notes -- cgit v1.2.3-70-g09d2