From 01437183ac28f28cedcd9cb76573b6683105fcf8 Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Sun, 7 Apr 2024 19:04:50 +0200 Subject: [PATCH] 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 --- lib/macro/macro-tree.cpp | 1 + lib/macro/macro-tree.hpp | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/macro/macro-tree.cpp b/lib/macro/macro-tree.cpp index d579ca45..5dc84ff3 100644 --- a/lib/macro/macro-tree.cpp +++ b/lib/macro/macro-tree.cpp @@ -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); diff --git a/lib/macro/macro-tree.hpp b/lib/macro/macro-tree.hpp index 423a6f58..fd798f7b 100644 --- a/lib/macro/macro-tree.hpp +++ b/lib/macro/macro-tree.hpp @@ -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 };