Add a title to the properties window

This commit is contained in:
jp9000 2014-07-12 02:08:51 -07:00
parent 76ff395aed
commit 9dc8ff84cf
2 changed files with 4 additions and 0 deletions

View File

@ -73,6 +73,7 @@ Basic.SourceSelect.CreateNew="Create new"
Basic.SourceSelect.AddExisting="Add Existing"
# properties window
Basic.PropertiesWindow="Properties for '%1'"
Basic.PropertiesWindow.AutoSelectFormat="%1 (unsupported; autoselect: %2)"
# status bar

View File

@ -57,6 +57,9 @@ OBSBasicProperties::OBSBasicProperties(QWidget *parent, OBSSource source_)
killTimer(resizeTimer);
resizeTimer = startTimer(100);
});
const char *name = obs_source_getname(source);
setWindowTitle(QTStr("Basic.PropertiesWindow").arg(QT_UTF8(name)));
}
void OBSBasicProperties::SourceRemoved(void *data, calldata_t params)