PlaylistView: Fix build with Qt 5

This commit is contained in:
Jonas Kvinge 2023-10-07 15:04:00 +02:00
parent 604a246fe8
commit 52ba1ce17f
1 changed files with 4 additions and 0 deletions

View File

@ -131,7 +131,11 @@ void PlaylistProxyStyle::drawPrimitive(PrimitiveElement element, const QStyleOpt
PlaylistView::PlaylistView(QWidget *parent)
: QTreeView(parent),
app_(nullptr),
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
style_(new PlaylistProxyStyle(QApplication::style()->name())),
#else
style_(new PlaylistProxyStyle(QApplication::style()->objectName())),
#endif
playlist_(nullptr),
header_(new PlaylistHeader(Qt::Horizontal, this, this)),
background_image_type_(AppearanceSettingsPage::BackgroundImageType::Default),