diff --git a/src/drivers/Qt/GuiConf.cpp b/src/drivers/Qt/GuiConf.cpp index 9660e1d5..06837cc8 100644 --- a/src/drivers/Qt/GuiConf.cpp +++ b/src/drivers/Qt/GuiConf.cpp @@ -591,11 +591,36 @@ QStyle *fceuStyle::styleBase(QStyle *style) const if ( s.size() == 0 ) { + int i, idx = -1; +#ifdef WIN32 + QString defaultStyle("windows"); +#elif __APPLE__ + QString defaultStyle("fusion"); +#else + QString defaultStyle("fusion"); +#endif + QStringList styleKeys = QStyleFactory::keys(); - if ( styleKeys.size() > 0 ) + for (i=0; i= 0) && (idx < styleKeys.size()) ) + { + s = styleKeys[idx].toStdString(); + } + else + { + s.assign("fusion"); } }