From 57ebed9dd0c550e689e30c7c9c2dbdcd4c133b58 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 26 Sep 2013 17:02:27 -0300 Subject: 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 --- qt-ui/maintab.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'qt-ui/maintab.cpp') 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); -- cgit v1.2.3-70-g09d2