UI, obs-plugins: Add spinbox suffixes where necessary
This commit is contained in:
parent
8af49016fa
commit
3ea354b4e4
19 changed files with 172 additions and 136 deletions
|
|
@ -334,6 +334,7 @@ void OBSPropertiesView::AddInt(obs_property_t *prop, QFormLayout *layout,
|
|||
spin->setValue(val);
|
||||
spin->setToolTip(QT_UTF8(obs_property_long_description(prop)));
|
||||
spin->setSuffix(QT_UTF8(suffix));
|
||||
spin->setFixedWidth(100);
|
||||
|
||||
WidgetInfo *info = new WidgetInfo(this, prop, spin);
|
||||
children.emplace_back(info);
|
||||
|
|
@ -385,6 +386,8 @@ void OBSPropertiesView::AddFloat(obs_property_t *prop, QFormLayout *layout,
|
|||
spin->setValue(val);
|
||||
spin->setToolTip(QT_UTF8(obs_property_long_description(prop)));
|
||||
spin->setSuffix(QT_UTF8(suffix));
|
||||
spin->setDecimals(1);
|
||||
spin->setFixedWidth(100);
|
||||
|
||||
WidgetInfo *info = new WidgetInfo(this, prop, spin);
|
||||
children.emplace_back(info);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue