Fix macro tree not resizing properly with OBS 31.1.0

This commit is contained in:
WarmUpTill 2025-06-07 17:01:43 +02:00 committed by WarmUpTill
parent b17aa30432
commit 201e45d058

View File

@ -1301,10 +1301,10 @@ QSize MacroTreeDelegate::sizeHint(const QStyleOptionViewItem &option,
QWidget *item = tree->indexWidget(index);
if (!item) {
return (QSize(0, 0));
return QStyledItemDelegate::sizeHint(option, index);
}
return (QSize(option.widget->minimumWidth(), item->height()));
return QSize(item->sizeHint());
}
} // namespace advss