mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-30 09:04:52 +01:00
Fix obsolete class warning.
This commit is contained in:
parent
25c6a921a0
commit
9479005511
@ -26,7 +26,7 @@ StyledItemDelegateWithoutFocus::~StyledItemDelegateWithoutFocus() {
|
|||||||
|
|
||||||
void StyledItemDelegateWithoutFocus::paint(QPainter *painter, const QStyleOptionViewItem &option,
|
void StyledItemDelegateWithoutFocus::paint(QPainter *painter, const QStyleOptionViewItem &option,
|
||||||
const QModelIndex &index) const {
|
const QModelIndex &index) const {
|
||||||
QStyleOptionViewItemV4 itemOption(option);
|
QStyleOptionViewItem itemOption(option);
|
||||||
|
|
||||||
if (itemOption.state & QStyle::State_HasFocus) {
|
if (itemOption.state & QStyle::State_HasFocus) {
|
||||||
itemOption.state = itemOption.state ^ QStyle::State_HasFocus;
|
itemOption.state = itemOption.state ^ QStyle::State_HasFocus;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user