summaryrefslogtreecommitdiffstats
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
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>
-rw-r--r--qt-ui/maintab.cpp6
-rw-r--r--qt-ui/maintab.ui3
2 files changed, 5 insertions, 4 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);
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 @@
<property name="currentIndex">
<number>3</number>
</property>
- <property name="documentMode">
- <bool>true</bool>
- </property>
<widget class="QWidget" name="notesTab">
<attribute name="title">
<string>Dive Notes</string>