Merge pull request #519 from f3nix/qt5-warnings-1

Fix some Qt5 build warnings
This commit is contained in:
wwmayer
2017-02-12 19:01:27 +01:00
committed by GitHub
2 changed files with 8 additions and 0 deletions

View File

@@ -320,7 +320,11 @@ protected:
}
void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const {
#if QT_VERSION >= 0x050000
QStyleOptionViewItem options = option;
#else
QStyleOptionViewItemV4 options = option;
#endif
initStyleOption(&options, index);
options.widget->style()->drawControl(QStyle::CE_ItemViewItem, &options, painter);