MCPcopy Create free account
hub / github.com/baldurk/renderdoc / SetTitle

Method SetTitle

qrenderdoc/Windows/MainWindow.cpp:1200–1232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1198}
1199
1200void MainWindow::SetTitle(const QString &filename)
1201{
1202 QString prefix;
1203
1204 if(m_Ctx.IsCaptureLoaded())
1205 {
1206 prefix = QFileInfo(filename).fileName();
1207 if(m_Ctx.APIProps().degraded)
1208 prefix += tr(" !DEGRADED PERFORMANCE!");
1209 prefix += lit(" - ");
1210 }
1211
1212 if(m_Ctx.Replay().CurrentRemote().IsValid())
1213 prefix += tr("Remote: %1 - ").arg(m_Ctx.Replay().CurrentRemote().Name());
1214
1215 QString text = prefix + lit("RenderDoc ");
1216
1217 if(RENDERDOC_STABLE_BUILD)
1218 text += lit(FULL_VERSION_STRING);
1219 else
1220 text += tr("Unstable %1 Build (%2 - %3)")
1221 .arg(RENDERDOC_IsReleaseBuild() ? lit("Release") : lit("Development"))
1222 .arg(lit(FULL_VERSION_STRING))
1223 .arg(QString::fromLatin1(RENDERDOC_GetCommitHash()));
1224
1225 if(IsRunningAsAdmin())
1226 text += tr(" (Administrator)");
1227
1228 if(QString::fromLatin1(RENDERDOC_GetVersionString()) != lit(MAJOR_MINOR_VERSION_STRING))
1229 text += tr(" - !! VERSION MISMATCH DETECTED !!");
1230
1231 setWindowTitle(text);
1232}
1233
1234void MainWindow::SetTitle()
1235{

Callers

nothing calls this directly

Calls 12

RENDERDOC_IsReleaseBuildFunction · 0.85
fromLatin1Function · 0.85
IsRunningAsAdminFunction · 0.85
fileNameMethod · 0.80
CurrentRemoteMethod · 0.80
NameMethod · 0.80
QFileInfoClass · 0.50
trFunction · 0.50
IsCaptureLoadedMethod · 0.45
IsValidMethod · 0.45
argMethod · 0.45
GetCaptureFilenameMethod · 0.45

Tested by

no test coverage detected