mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-01 11:07:30 +01:00
Remove qstyleoption_cast
This commit is contained in:
parent
f228f79a8a
commit
5927483402
@ -80,8 +80,7 @@ void DeviceItemDelegate::paint(QPainter *p, const QStyleOptionViewItem &opt, con
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Draw the background
|
// Draw the background
|
||||||
const QStyleOptionViewItem *vopt = qstyleoption_cast<const QStyleOptionViewItem*>(&opt);
|
const QWidget *widget = opt.widget;
|
||||||
const QWidget *widget = vopt->widget;
|
|
||||||
QStyle *style = widget->style() ? widget->style() : QApplication::style();
|
QStyle *style = widget->style() ? widget->style() : QApplication::style();
|
||||||
style->drawPrimitive(QStyle::PE_PanelItemViewItem, &opt, p, widget);
|
style->drawPrimitive(QStyle::PE_PanelItemViewItem, &opt, p, widget);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user