Disable Document Mode for MainTab on MacOSX

Commit c4f06dc536 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>
This commit is contained in:
Henrik Brautaset Aronsen 2013-06-07 12:23:48 +02:00 committed by Dirk Hohndel
parent e504742dc8
commit 0031b64df7
2 changed files with 5 additions and 4 deletions

View file

@ -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);

View file

@ -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>