mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
Fix macro tree not resizing properly with OBS 31.1.0
This commit is contained in:
parent
b17aa30432
commit
201e45d058
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user