UI: Halve width of tab in multiline text property

This commit is contained in:
Matt Gajownik
2019-12-29 19:49:42 +11:00
parent 96f00cdffc
commit 9446ca5511

View File

@@ -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) {