summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2017-01-12 17:09:52 +0000
committerJose Fonseca <jfonseca@vmware.com>2017-01-12 17:09:52 +0000
commitaa4bac9bb9b944269f23139d459af589eb921aa4 (patch)
treef4568d9086eec87d28bf235f3e4f33939220267d /gui
parent849af14927410b5cd8a9597a39bd7f636ae54644 (diff)
gui: Avoid deprecated QStyleOptionViewItemV4 warnings.
Diffstat (limited to 'gui')
-rw-r--r--gui/androiddevicedialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/androiddevicedialog.cpp b/gui/androiddevicedialog.cpp
index 63bd51ef..df2f4d39 100644
--- a/gui/androiddevicedialog.cpp
+++ b/gui/androiddevicedialog.cpp
@@ -135,7 +135,7 @@ public:
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
{
- QStyleOptionViewItemV4 opt = option;
+ QStyleOptionViewItem opt = option;
initStyleOption(&opt, index);
painter->save();
@@ -213,7 +213,7 @@ public:
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override
{
- QStyleOptionViewItemV4 opt = option;
+ QStyleOptionViewItem opt = option;
initStyleOption(&opt, index);
QFontMetrics fm(option.font);