mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-28 08:09:40 +01:00
PlaylistView: Fix build with Qt 5
This commit is contained in:
parent
604a246fe8
commit
52ba1ce17f
@ -131,7 +131,11 @@ void PlaylistProxyStyle::drawPrimitive(PrimitiveElement element, const QStyleOpt
|
|||||||
PlaylistView::PlaylistView(QWidget *parent)
|
PlaylistView::PlaylistView(QWidget *parent)
|
||||||
: QTreeView(parent),
|
: QTreeView(parent),
|
||||||
app_(nullptr),
|
app_(nullptr),
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||||
style_(new PlaylistProxyStyle(QApplication::style()->name())),
|
style_(new PlaylistProxyStyle(QApplication::style()->name())),
|
||||||
|
#else
|
||||||
|
style_(new PlaylistProxyStyle(QApplication::style()->objectName())),
|
||||||
|
#endif
|
||||||
playlist_(nullptr),
|
playlist_(nullptr),
|
||||||
header_(new PlaylistHeader(Qt::Horizontal, this, this)),
|
header_(new PlaylistHeader(Qt::Horizontal, this, this)),
|
||||||
background_image_type_(AppearanceSettingsPage::BackgroundImageType::Default),
|
background_image_type_(AppearanceSettingsPage::BackgroundImageType::Default),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user