UI: Halve width of tab in multiline text property
This commit is contained in:
@@ -239,6 +239,11 @@ QWidget *OBSPropertiesView::AddText(obs_property_t *prop, QFormLayout *layout,
|
||||
|
||||
if (type == OBS_TEXT_MULTILINE) {
|
||||
QPlainTextEdit *edit = new QPlainTextEdit(QT_UTF8(val));
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
|
||||
edit->setTabStopDistance(40);
|
||||
#else
|
||||
edit->setTabStopWidth(40);
|
||||
#endif
|
||||
return NewWidget(prop, edit, SIGNAL(textChanged()));
|
||||
|
||||
} else if (type == OBS_TEXT_PASSWORD) {
|
||||
|
Reference in New Issue
Block a user