| 833 | } |
| 834 | |
| 835 | static 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 | |
| 848 | void OBSPropertiesView::AddEditableList(obs_property_t *prop, |
| 849 | QFormLayout *layout, QLabel *&label) |