BUGFIX: Fix progress display with cleanlook style

This commit is contained in:
Christophe Dumez
2010-03-19 08:06:56 +00:00
parent e853b0b736
commit cc7d74b67c
5 changed files with 110 additions and 0 deletions

View File

@@ -39,6 +39,7 @@
#include <QStyle>
#include <QSplashScreen>
#include <QPushButton>
#include "qgnomelook.h"
#include "GUI.h"
#include "ico.h"
#else
@@ -159,6 +160,11 @@ void useStyle(QApplication *app, QString style){
if(!style.isEmpty()) {
QApplication::setStyle(QStyleFactory::create(style));
}
if(app->style()->objectName() == "cleanlooks") {
// Force our own cleanlooks style
qDebug("Forcing our own cleanlooks style");
app->setStyle(new QGnomeLookStyle());
}
Preferences::setStyle(app->style()->objectName());
}
#endif