Bläddra i källkod

Add a title to the properties window

jp9000 11 år sedan
förälder
incheckning
9dc8ff84cf
2 ändrade filer med 4 tillägg och 0 borttagningar
  1. 1 0
      build/data/obs-studio/locale/en-US.ini
  2. 3 0
      obs/window-basic-properties.cpp

+ 1 - 0
build/data/obs-studio/locale/en-US.ini

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

+ 3 - 0
obs/window-basic-properties.cpp

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