SmartPlaylistWizard: Set classic style if using fusion on Windows
Workaround a Qt bug. Fixes #1399
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QRadioButton>
|
#include <QRadioButton>
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
|
#include <QStyle>
|
||||||
|
|
||||||
#include "core/logging.h"
|
#include "core/logging.h"
|
||||||
#include "core/shared_ptr.h"
|
#include "core/shared_ptr.h"
|
||||||
@@ -76,6 +77,11 @@ SmartPlaylistWizard::SmartPlaylistWizard(Application *app, SharedPtr<CollectionB
|
|||||||
// MacStyle leaves an ugly empty space on the left side of the dialog.
|
// MacStyle leaves an ugly empty space on the left side of the dialog.
|
||||||
setWizardStyle(QWizard::ClassicStyle);
|
setWizardStyle(QWizard::ClassicStyle);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef Q_OS_WIN32
|
||||||
|
if (QApplication::style() && QApplication::style()->objectName() == "fusion") {
|
||||||
|
setWizardStyle(QWizard::ClassicStyle);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Type page
|
// Type page
|
||||||
type_page_->setTitle(tr("Playlist type"));
|
type_page_->setTitle(tr("Playlist type"));
|
||||||
|
|||||||
Reference in New Issue
Block a user