Fix checkbox icon of groups in macro tree not being set on OBS 30.1.2

This change is necessary because of
https://github.com/obsproject/obs-studio/pull/9584
This commit is contained in:
WarmUpTill 2024-04-07 19:04:50 +02:00 committed by WarmUpTill
parent e5ab2ceca3
commit 01437183ac
2 changed files with 2 additions and 0 deletions

View File

@ -173,6 +173,7 @@ void MacroTreeItem::Update(bool force)
} else if (_type == Type::Group) {
_expand = new SourceTreeSubItemCheckBox();
_expand->setProperty("sourceTreeSubItem", true);
_expand->setSizePolicy(QSizePolicy::Maximum,
QSizePolicy::Maximum);
_expand->setMaximumSize(10, 16);

View File

@ -17,6 +17,7 @@ class QSpacerItem;
class QHBoxLayout;
// Only used to enable applying "SourceTreeSubItemCheckBox" stylesheet
// Can be removed once the minimum supported OBS version is greater than 30.1
class SourceTreeSubItemCheckBox : public QCheckBox {
Q_OBJECT
};