diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-31 12:40:52 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-31 12:40:52 +0900 |
commit | 34c7aa940ca369389133c82d096a84f7a80fa6d9 (patch) | |
tree | 8631d1e2b07d60ad52621b25f1c8d12429e39c0c /qt-gui.cpp | |
parent | e6d419f6becacc9db7c26b844770ec066fbf5755 (diff) | |
download | subsurface-34c7aa940ca369389133c82d096a84f7a80fa6d9.tar.gz |
Hack to force plastique style on Linux
I'd much rather be able to check if it is using the Gnome style and only
then force plastique but I haven't been able to figure out how to do
that.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-gui.cpp')
-rw-r--r-- | qt-gui.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp index 1d9f9cad3..31b6c1b0b 100644 --- a/qt-gui.cpp +++ b/qt-gui.cpp @@ -84,6 +84,15 @@ const char *getSetting(QSettings &s, QString name) void init_ui(int *argcp, char ***argvp) { QVariant v; +#ifdef __linux__ + // for people running under Gnome the default style is + // really ugly; this seems like a bad hack, but it makes + // things look somewhat better + // I'd much rather be able to check if it is using the Gnome + // style and only then force plastique but I haven't been + // able to figure out how to do that + QApplication::setStyle("plastique"); +#endif application = new QApplication(*argcp, *argvp); #if QT_VERSION < 0x050000 |