diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2017-01-12 17:09:52 +0000 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2017-01-12 17:09:52 +0000 |
commit | aa4bac9bb9b944269f23139d459af589eb921aa4 (patch) | |
tree | f4568d9086eec87d28bf235f3e4f33939220267d | |
parent | 849af14927410b5cd8a9597a39bd7f636ae54644 (diff) |
gui: Avoid deprecated QStyleOptionViewItemV4 warnings.
-rw-r--r-- | gui/androiddevicedialog.cpp | 4 |
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); |