Set titles for source file tabs in the shader viewer

This commit is contained in:
baldurk
2017-01-25 12:44:41 +00:00
parent 28cba09f22
commit 3b7eaaa4fb
+1
View File
@@ -94,6 +94,7 @@ ShaderViewer::ShaderViewer(CaptureContext *ctx, ShaderReflection *shader, Shader
ScintillaEdit *scintilla = MakeEditor("scintilla" + name, text, true);
scintilla->setReadOnly(true);
scintilla->setWindowTitle(name);
((QWidget *)scintilla)->setProperty("name", name);
QObject::connect(scintilla, &ScintillaEdit::keyPressed, this,