Only use base filename, not full path

This commit is contained in:
baldurk
2017-01-25 12:44:57 +00:00
parent 3b7eaaa4fb
commit b428dfd139
2 changed files with 2 additions and 2 deletions
@@ -1232,7 +1232,7 @@ void VulkanPipelineStateViewer::setShaderState(const VulkanPipelineState::Shader
if(entryFile < 0 || entryFile >= shaderDetails->DebugInfo.files.count)
entryFile = 0;
shaderfn = ToQStr(shaderDetails->DebugInfo.files[entryFile].first);
shaderfn = QFileInfo(ToQStr(shaderDetails->DebugInfo.files[entryFile].first)).fileName();
shader->setText(entryFunc + "() - " + shaderfn);
}
+1 -1
View File
@@ -89,7 +89,7 @@ ShaderViewer::ShaderViewer(CaptureContext *ctx, ShaderReflection *shader, Shader
QWidget *sel = m_DisassemblyView;
for(auto &f : shader->DebugInfo.files)
{
QString name = ToQStr(f.first);
QString name = QFileInfo(ToQStr(f.first)).fileName();
QString text = ToQStr(f.second);
ScintillaEdit *scintilla = MakeEditor("scintilla" + name, text, true);