From 64fef21a861fe6f6231bca5db0b715cb5989f2c4 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 12 Jul 2009 03:35:04 +0000 Subject: [PATCH] - Forcing our own cleanlooks style instead of default one on startup (closes #181796) --- src/main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 385102bb3..3508a72a5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -103,8 +103,12 @@ void useStyle(QApplication *app, int style){ app->setStyle(new QWindowsXPStyle()); break; #endif - /*default: - app->setStyle(new QPlastiqueStyle());*/ + default: + if(app->style()->objectName() == "cleanlooks") { + // Force our own cleanlooks style + qDebug("Forcing our own cleanlooks style"); + app->setStyle(new QGnomeLookStyle()); + } } }