/
githubmirror
/
obs-studio
Обзор
Документация
Войти
/
githubmirror
/
obs-studio
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
frontend/components/SourceTreeDelegate.cpp
17 строк
506 B
Warchamp7
Update C++ files with braces
09 июн 2026, 20:41
09 июн 2026, 20:41
30b63c6
Код
Авторство
О чём код?
#include "SourceTree.hpp" #include "SourceTreeDelegate.hpp" #include "moc_SourceTreeDelegate.cpp" SourceTreeDelegate::SourceTreeDelegate(QObject *parent) : QStyledItemDelegate(parent) {} QSize SourceTreeDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const { SourceTree *tree = qobject_cast<SourceTree *>(parent()); QWidget *item = tree->indexWidget(index); if (!item) { return QStyledItemDelegate::sizeHint(option, index); } return (QSize(item->sizeHint())); }