mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
28dd4d144a
commit
57ebed9dd0
2 changed files with 5 additions and 8 deletions
|
@ -95,7 +95,6 @@ void init_ui(int *argcp, char ***argvp)
|
||||||
|
|
||||||
// the Gtk theme makes things unbearably ugly
|
// the Gtk theme makes things unbearably ugly
|
||||||
// so switch to Oxygen in this case
|
// so switch to Oxygen in this case
|
||||||
qDebug() << application->style()->objectName();
|
|
||||||
if (application->style()->objectName() == "gtk+")
|
if (application->style()->objectName() == "gtk+")
|
||||||
application->setStyle("Oxygen");
|
application->setStyle("Oxygen");
|
||||||
|
|
||||||
|
|
|
@ -39,14 +39,12 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
|
||||||
ui->equipmentButtonBox->hide();
|
ui->equipmentButtonBox->hide();
|
||||||
ui->diveNotesMessage->setCloseButtonVisible(false);
|
ui->diveNotesMessage->setCloseButtonVisible(false);
|
||||||
ui->diveEquipmentMessage->setCloseButtonVisible(false);
|
ui->diveEquipmentMessage->setCloseButtonVisible(false);
|
||||||
#ifdef __APPLE__
|
|
||||||
setDocumentMode(false);
|
if (qApp->style()->objectName() == "oxygen")
|
||||||
#else
|
|
||||||
if (qApp->style()->objectName() == "gtk+")
|
|
||||||
setDocumentMode(false);
|
|
||||||
else
|
|
||||||
setDocumentMode(true);
|
setDocumentMode(true);
|
||||||
#endif
|
else
|
||||||
|
setDocumentMode(false);
|
||||||
|
|
||||||
// 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
|
||||||
setEnabled(false);
|
setEnabled(false);
|
||||||
|
|
Loading…
Add table
Reference in a new issue