Fix obsolete class warning.

This commit is contained in:
Martin Rotter 2016-06-22 20:06:24 +02:00
parent 25c6a921a0
commit 9479005511

View File

@ -26,7 +26,7 @@ StyledItemDelegateWithoutFocus::~StyledItemDelegateWithoutFocus() {
void StyledItemDelegateWithoutFocus::paint(QPainter *painter, const QStyleOptionViewItem &option,
const QModelIndex &index) const {
QStyleOptionViewItemV4 itemOption(option);
QStyleOptionViewItem itemOption(option);
if (itemOption.state & QStyle::State_HasFocus) {
itemOption.state = itemOption.state ^ QStyle::State_HasFocus;