mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
e504742dc8
commit
0031b64df7
2 changed files with 5 additions and 4 deletions
|
@ -27,7 +27,11 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
|
||||||
ui->weights->setModel(weightModel);
|
ui->weights->setModel(weightModel);
|
||||||
ui->diveNotesMessage->hide();
|
ui->diveNotesMessage->hide();
|
||||||
ui->diveNotesMessage->setCloseButtonVisible(false);
|
ui->diveNotesMessage->setCloseButtonVisible(false);
|
||||||
|
#ifdef __APPLE__
|
||||||
|
setDocumentMode(false);
|
||||||
|
#else
|
||||||
|
setDocumentMode(true);
|
||||||
|
#endif
|
||||||
// we start out with the fields read-only; once things are
|
// we start out with the fields read-only; once things are
|
||||||
// filled from a dive, they are made writeable
|
// filled from a dive, they are made writeable
|
||||||
ui->location->setReadOnly(true);
|
ui->location->setReadOnly(true);
|
||||||
|
|
|
@ -16,9 +16,6 @@
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>3</number>
|
<number>3</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="documentMode">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<widget class="QWidget" name="notesTab">
|
<widget class="QWidget" name="notesTab">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Dive Notes</string>
|
<string>Dive Notes</string>
|
||||||
|
|
Loading…
Add table
Reference in a new issue