summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-09-26 17:02:27 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-09-26 17:02:27 -0300
commit57ebed9dd0c550e689e30c7c9c2dbdcd4c133b58 (patch)
tree3a41de194a1036a90485957a2f0a80cd475650cf
parent28dd4d144ac75b8ee4a5de913e59f6ad67e84334 (diff)
downloadsubsurface-57ebed9dd0c550e689e30c7c9c2dbdcd4c133b58.tar.gz
Only set documentMode on tab if in Oxygen style.
This is much better looking in the Oxygen style, and on the other styles it looks like crap - so let`s not use that. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
-rw-r--r--qt-gui.cpp1
-rw-r--r--qt-ui/maintab.cpp12
2 files changed, 5 insertions, 8 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp
index 59fa1985e..cb06bf8d5 100644
--- a/qt-gui.cpp
+++ b/qt-gui.cpp
@@ -95,7 +95,6 @@ void init_ui(int *argcp, char ***argvp)
// the Gtk theme makes things unbearably ugly
// so switch to Oxygen in this case
- qDebug() << application->style()->objectName();
if (application->style()->objectName() == "gtk+")
application->setStyle("Oxygen");
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 18e9b743a..43529ec3c 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -39,14 +39,12 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
ui->equipmentButtonBox->hide();
ui->diveNotesMessage->setCloseButtonVisible(false);
ui->diveEquipmentMessage->setCloseButtonVisible(false);
-#ifdef __APPLE__
- setDocumentMode(false);
-#else
- if (qApp->style()->objectName() == "gtk+")
- setDocumentMode(false);
- else
+
+ if (qApp->style()->objectName() == "oxygen")
setDocumentMode(true);
-#endif
+ else
+ setDocumentMode(false);
+
// we start out with the fields read-only; once things are
// filled from a dive, they are made writeable
setEnabled(false);