summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-10-23 08:42:00 +0200
committerMontel Laurent <[email protected]>2017-10-23 08:42:00 +0200
commit6b4ebdeeafed889245d516e78cdc142aab89374f (patch)
tree647df0c7d1a8f59fb3a67a042274ea550943e8e0
parent95f256a75e209a6f386085cc71a9153a36ce9ca5 (diff)
Remove deprecated class
-rw-r--r--src/diceswidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/diceswidget.cpp b/src/diceswidget.cpp
index c9754f4..6ea566d 100644
--- a/src/diceswidget.cpp
+++ b/src/diceswidget.cpp
@@ -14,7 +14,7 @@
#include <QPainter>
#include <QPixmap>
#include <QMouseEvent>
-#include <QStyleOptionViewItemV4>
+#include <QStyleOptionViewItem>
#include <krandom.h>
#include <QStandardPaths>
@@ -182,7 +182,7 @@ void dicesWidget::paintEvent(QPaintEvent *)
// if (!m_enabled) pixmap = KPixmapEffect::toGray(pixmap, false);
if (m_highlightDice[i])
{
- QStyleOptionViewItemV4 option;
+ QStyleOptionViewItem option;
option.initFrom(this);
option.rect = QRect(5, 9 + 90 * i, 80, 80);
option.state |= QStyle::State_Selected;