MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / NewButton

Function NewButton

plugins/scripting/utils/properties-view.cpp:835–846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

833}
834
835static void NewButton(QLayout *layout, WidgetInfo *info, const char *themeIcon,
836 void (WidgetInfo::*method)())
837{
838 QPushButton *button = new QPushButton();
839 button->setProperty("themeID", themeIcon);
840 button->setFlat(true);
841 button->setProperty("toolButton", true);
842
843 QObject::connect(button, &QPushButton::clicked, info, method);
844
845 layout->addWidget(button);
846}
847
848void OBSPropertiesView::AddEditableList(obs_property_t *prop,
849 QFormLayout *layout, QLabel *&label)

Callers 1

AddEditableListMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected