UI: Replace SourceTreeSubItemCheckBox class with Qt property

This commit is contained in:
gxalpha
2023-10-28 10:22:38 -03:00
committed by Georges Basile Stavracas Neto
parent ba4467199c
commit 60c77aa915
9 changed files with 40 additions and 43 deletions
+2 -1
View File
@@ -577,7 +577,8 @@ void SourceTreeItem::Update(bool force)
boxLayout->insertItem(0, spacer);
} else if (type == Type::Group) {
expand = new SourceTreeSubItemCheckBox();
expand = new QCheckBox();
expand->setProperty("sourceTreeSubItem", true);
expand->setSizePolicy(QSizePolicy::Maximum,
QSizePolicy::Maximum);
expand->setMaximumSize(10, 16);