summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-07-22 05:07:49 (GMT)
committerMontel Laurent <montel@kde.org>2016-07-22 05:07:49 (GMT)
commitbfd9db82c2fd6af9fde99188c035919bf30992d3 (patch)
treeda73ebdeb2af637ab02b2b25b68532de3d103fe7
parent1653a8b21df6c5000194f0ad851cf854f9c0dd6d (diff)
Remove deprecated method
-rw-r--r--src/todo/tododelegates.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/todo/tododelegates.cpp b/src/todo/tododelegates.cpp
index cbaf213..7739ffa 100644
--- a/src/todo/tododelegates.cpp
+++ b/src/todo/tododelegates.cpp
@@ -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;