Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit a873b068 authored by Andrius Štikonas's avatar Andrius Štikonas

QStyleOptionViewItemV4 -> QStyleOptionViewItem

parent f9afd790
......@@ -288,7 +288,7 @@ void RangeTreeWidgetItemDelegate::paint(QPainter *painter, const QStyleOptionVie
QStyledItemDelegate::paint(painter, option, index);
}
else if(index.isValid()) {
QStyleOptionViewItemV4 opt(option);
QStyleOptionViewItem opt(option);
QStyle *style = opt.widget ? opt.widget->style() : QApplication::style();
style->drawPrimitive(QStyle::PE_PanelItemViewItem, &opt, painter, opt.widget);
......
......@@ -82,7 +82,7 @@ void TransferHistoryItemDelegate::paint(QPainter *painter,
painter->restore();
}
QStyleOptionViewItemV4 opt(option);
QStyleOptionViewItem opt(option);
QStyle *style = opt.widget ? opt.widget->style() : QApplication::style();
style->drawPrimitive(QStyle::PE_PanelItemViewItem, &opt, painter, opt.widget);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment