updateWindowTitle()

This commit is contained in:
Don Park 2013-10-25 10:09:34 -07:00
parent 968544152f
commit dc420beaf2
2 changed files with 14 additions and 0 deletions

View file

@ -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);

View file

@ -206,6 +206,7 @@ private:
void initDisplay();
void init();
void updateWindowTitle();
void update(float deltaTime);