mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
updateWindowTitle()
This commit is contained in:
parent
968544152f
commit
dc420beaf2
2 changed files with 14 additions and 0 deletions
|
@ -3791,6 +3791,19 @@ void Application::attachNewHeadToNode(Node* newNode) {
|
|||
}
|
||||
}
|
||||
|
||||
void Application::updateWindowTitle(){
|
||||
QString title = "";
|
||||
QString username = _profile.getUsername();
|
||||
if(!username.isEmpty()){
|
||||
title += _profile.getUsername();
|
||||
title += " @ ";
|
||||
}
|
||||
title += _profile.getLastDomain();
|
||||
|
||||
qDebug("Application title set to: %s.\n", title.toStdString().c_str());
|
||||
_window->setWindowTitle(title);
|
||||
}
|
||||
|
||||
void Application::domainChanged(QString domain) {
|
||||
qDebug("Application title set to: %s.\n", domain.toStdString().c_str());
|
||||
_window->setWindowTitle(domain);
|
||||
|
|
|
@ -206,6 +206,7 @@ private:
|
|||
|
||||
void initDisplay();
|
||||
void init();
|
||||
void updateWindowTitle();
|
||||
|
||||
void update(float deltaTime);
|
||||
|
||||
|
|
Loading…
Reference in a new issue