mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-04-29 22:24:26 +02:00
Fix windows 9x and possibly other styles
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
a108b5e9eb
commit
947ca67952
@ -172,6 +172,8 @@ QStyleOptionViewItem ProjectItemDelegate::makeCheckboxStyleOption(const QStyleOp
|
|||||||
|
|
||||||
if (checkboxOpt.checkState == Qt::Checked)
|
if (checkboxOpt.checkState == Qt::Checked)
|
||||||
checkboxOpt.state |= QStyle::State_On;
|
checkboxOpt.state |= QStyle::State_On;
|
||||||
|
else
|
||||||
|
checkboxOpt.state |= QStyle::State_Off;
|
||||||
|
|
||||||
QRect checkboxRect = style->subElementRect(QStyle::SE_ItemViewItemCheckIndicator, &checkboxOpt, opt.widget);
|
QRect checkboxRect = style->subElementRect(QStyle::SE_ItemViewItemCheckIndicator, &checkboxOpt, opt.widget);
|
||||||
// 5px is the typical top margin for image
|
// 5px is the typical top margin for image
|
||||||
|
Loading…
x
Reference in New Issue
Block a user