Merge pull request #519 from f3nix/qt5-warnings-1
Fix some Qt5 build warnings
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user