MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / update_title_bar_text

Method update_title_bar_text

DSView/pv/mainwindow.cpp:2171–2187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2169 }
2170
2171 void MainWindow::update_title_bar_text()
2172 {
2173 // Set the title
2174 QString title = QApplication::applicationName() + " v" + QApplication::applicationVersion();
2175 AppConfig &app = AppConfig::Instance();
2176
2177 if (_title_ext_string != "" && app.appOptions.displayProfileInBar){
2178 title += " [" + _title_ext_string + "]";
2179 }
2180
2181 if (_lst_title_string != title){
2182 _lst_title_string = title;
2183
2184 setWindowTitle(QApplication::translate("MainWindow", title.toLocal8Bit().data(), 0));
2185 _title_bar->setTitle(this->windowTitle());
2186 }
2187 }
2188
2189 void MainWindow::load_demo_decoder_config(QString optname)
2190 {

Callers

nothing calls this directly

Calls 2

dataMethod · 0.45
setTitleMethod · 0.45

Tested by

no test coverage detected