mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
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>
This commit is contained in:
parent
e6d419f6be
commit
34c7aa940c
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue