mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 23:57:13 +02:00
Printing build version on title
This commit is contained in:
parent
58350cf596
commit
06d14436bd
1 changed files with 3 additions and 1 deletions
|
@ -4106,12 +4106,14 @@ void Application::attachNewHeadToNode(Node* newNode) {
|
||||||
|
|
||||||
void Application::updateWindowTitle(){
|
void Application::updateWindowTitle(){
|
||||||
QString title = "";
|
QString title = "";
|
||||||
|
QString buildVersion = " (build " + QString::number(BUILD_VERSION) + ")";
|
||||||
QString username = _profile.getUsername();
|
QString username = _profile.getUsername();
|
||||||
if(!username.isEmpty()){
|
if(!username.isEmpty()){
|
||||||
title += _profile.getUsername();
|
title += _profile.getUsername();s
|
||||||
title += " @ ";
|
title += " @ ";
|
||||||
}
|
}
|
||||||
title += _profile.getLastDomain();
|
title += _profile.getLastDomain();
|
||||||
|
title += buildVersion;
|
||||||
|
|
||||||
qDebug("Application title set to: %s.\n", title.toStdString().c_str());
|
qDebug("Application title set to: %s.\n", title.toStdString().c_str());
|
||||||
_window->setWindowTitle(title);
|
_window->setWindowTitle(title);
|
||||||
|
|
Loading…
Reference in a new issue