summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-09-26 16:51:11 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-09-26 16:51:11 -0300
commit8f94b904dd122ea2b6988fc04781a08637d02f60 (patch)
tree0bc81c9ec9acd6e86dcc6d4e5aad51c2e68270c2 /qt-ui/maintab.cpp
parentd6f2988bcf1b950e60fb820fe1bd5e96c025c979 (diff)
downloadsubsurface-8f94b904dd122ea2b6988fc04781a08637d02f60.tar.gz
Cleanup the prettyness of subsurface on Gtk+ style.
Fix some stuff concerning the pretyness of subsurface while running on Gnome and XFCE enviroments. This is the kind of stuff that I really didn`t want to put on the code but sometimes it`s for the best. this makes the MainTab much more bearable. There are still things to fix, like the size and positioning of some of the icons. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index c10d8737d..18e9b743a 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -42,7 +42,10 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
#ifdef __APPLE__
setDocumentMode(false);
#else
- setDocumentMode(true);
+ if (qApp->style()->objectName() == "gtk+")
+ 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