mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-01 10:56:57 +03:00
NOISSUE fix a bunch of compiler warnings
This commit is contained in:
parent
572a6026b5
commit
8bd8be95f0
10 changed files with 22 additions and 27 deletions
|
|
@ -407,7 +407,7 @@ void GroupView::paintEvent(QPaintEvent *event)
|
|||
|
||||
QPainter painter(this->viewport());
|
||||
|
||||
QStyleOptionViewItemV4 option(viewOptions());
|
||||
QStyleOptionViewItem option(viewOptions());
|
||||
option.widget = this;
|
||||
|
||||
int wpWidth = viewport()->width();
|
||||
|
|
@ -437,8 +437,7 @@ void GroupView::paintEvent(QPaintEvent *event)
|
|||
}
|
||||
Qt::ItemFlags flags = index.flags();
|
||||
option.rect = visualRect(index);
|
||||
option.features |=
|
||||
QStyleOptionViewItemV2::WrapText; // FIXME: what is the meaning of this anyway?
|
||||
option.features |= QStyleOptionViewItem::WrapText;
|
||||
if (flags & Qt::ItemIsSelectable && selectionModel()->isSelected(index))
|
||||
{
|
||||
option.state |= selectionModel()->isSelected(index) ? QStyle::State_Selected
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue