Commit bfd9db82 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove deprecated method

parent 1653a8b2
......@@ -63,7 +63,7 @@ void TodoCompleteDelegate::paint(QPainter *painter,
{
QStyle *style;
QStyleOptionViewItemV4 opt = option;
QStyleOptionViewItem opt = option;
initStyleOption(&opt, index);
style = opt.widget ? opt.widget->style() : QApplication::style();
......@@ -92,7 +92,7 @@ void TodoCompleteDelegate::paint(QPainter *painter,
QSize TodoCompleteDelegate::sizeHint(const QStyleOptionViewItem &option,
const QModelIndex &index) const
{
QStyleOptionViewItemV4 opt = option;
QStyleOptionViewItem opt = option;
initStyleOption(&opt, index);
QStyle *style = opt.widget ? opt.widget->style() : QApplication::style();
......@@ -358,7 +358,7 @@ void TodoRichTextDelegate::paint(QPainter *painter,
const QModelIndex &index) const
{
if (index.data(TodoModel::IsRichTextRole).toBool()) {
QStyleOptionViewItemV4 opt = option;
QStyleOptionViewItem opt = option;
initStyleOption(&opt, index);
const QWidget *widget = 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