MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / updateDisplayTitleBar

Method updateDisplayTitleBar

src/app/app.cpp:805–819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

803}
804
805void App::updateDisplayTitleBar()
806{
807 std::string defaultTitle = PACKAGE_AND_VERSION;
808 std::string title;
809
810 DocumentView* docView = UIContext::instance()->activeView();
811 if (docView) {
812 // Prepend the document's filename.
813 title += docView->document()->name();
814 title += " - ";
815 }
816
817 title += defaultTitle;
818 she::instance()->defaultDisplay()->setTitleBar(title);
819}
820
821InputChain& App::inputChain()
822{

Callers 2

setActiveViewMethod · 0.80

Calls 6

instanceFunction · 0.85
setTitleBarMethod · 0.80
defaultDisplayMethod · 0.80
activeViewMethod · 0.45
nameMethod · 0.45
documentMethod · 0.45

Tested by

no test coverage detected