Fix windows 9x and possibly other styles
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
a108b5e9eb
commit
947ca67952
1 changed files with 2 additions and 0 deletions
|
@ -172,6 +172,8 @@ QStyleOptionViewItem ProjectItemDelegate::makeCheckboxStyleOption(const QStyleOp
|
|||
|
||||
if (checkboxOpt.checkState == Qt::Checked)
|
||||
checkboxOpt.state |= QStyle::State_On;
|
||||
else
|
||||
checkboxOpt.state |= QStyle::State_Off;
|
||||
|
||||
QRect checkboxRect = style->subElementRect(QStyle::SE_ItemViewItemCheckIndicator, &checkboxOpt, opt.widget);
|
||||
// 5px is the typical top margin for image
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue