Commit 5a4e2e21 authored by Sandro Andrade's avatar Sandro Andrade

Fix use of deprecated QStyleOptionViewItemV4

parent 87511fe7
......@@ -42,7 +42,7 @@ public:
{
if (index.column() == 1) {
painter->save();
QStyleOptionViewItemV4 opt(option);
QStyleOptionViewItem opt(option);
QStyle *style = opt.widget ? opt.widget->style() : QApplication::style();
const int textMargin = style->pixelMetric(QStyle::PM_FocusFrameHMargin) + 1;
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