Remove setBaseStyle()
This commit is contained in:
@@ -89,13 +89,7 @@ const int PlaylistView::kAutoscrollGraceTimeout = 30; // seconds
|
||||
const int PlaylistView::kDropIndicatorWidth = 2;
|
||||
const int PlaylistView::kDropIndicatorGradientWidth = 5;
|
||||
|
||||
PlaylistProxyStyle::PlaylistProxyStyle(QStyle *base)
|
||||
: QProxyStyle(nullptr),
|
||||
common_style_(new QCommonStyle) {
|
||||
|
||||
setBaseStyle(base);
|
||||
|
||||
}
|
||||
PlaylistProxyStyle::PlaylistProxyStyle() : QProxyStyle(nullptr), common_style_(new QCommonStyle) {}
|
||||
|
||||
void PlaylistProxyStyle::drawControl(ControlElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const {
|
||||
|
||||
@@ -139,7 +133,7 @@ void PlaylistProxyStyle::drawPrimitive(PrimitiveElement element, const QStyleOpt
|
||||
PlaylistView::PlaylistView(QWidget *parent)
|
||||
: QTreeView(parent),
|
||||
app_(nullptr),
|
||||
style_(new PlaylistProxyStyle(style())),
|
||||
style_(new PlaylistProxyStyle()),
|
||||
playlist_(nullptr),
|
||||
header_(new PlaylistHeader(Qt::Horizontal, this, this)),
|
||||
background_image_type_(AppearanceSettingsPage::BackgroundImageType_Default),
|
||||
|
||||
Reference in New Issue
Block a user