aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Henrik Brautaset Aronsen <subsurface@henrik.synth.no>2013-06-07 12:23:48 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-07 21:42:13 -0700
commit0031b64df74bd80cbb0205f476531111bcc87d58 (patch)
treef03defacce0d942a1469525e4ea83ab2d3f46fe5 /qt-ui/maintab.cpp
parente504742dc8e7958d72e0d27c88996f20fafe2e38 (diff)
downloadsubsurface-0031b64df74bd80cbb0205f476531111bcc87d58.tar.gz
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 <subsurface@henrik.synth.no> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp6
1 files changed, 5 insertions, 1 deletions
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);