History

updateWindowTitle()

Don Park committed 13 years ago

Commit dc420be1 parent 96854412 files · +14 −0Browse files

Showing the changes to interface/src/Application.cpp (1 of 2 files). Show all

Unified · Split

interface/src/Application.cpp+13−0
@@ -3791,6 +3791,19 @@ void Application::attachNewHeadToNode(Node* newNode) { · 3790 unmodified lines
3791 }3791 }
3792}3792}
3793 3793
3794void Application::updateWindowTitle(){
3795 QString title = "";
3796 QString username = _profile.getUsername();
3797 if(!username.isEmpty()){
3798 title += _profile.getUsername();
3799 title += " @ ";
3800 }
3801 title += _profile.getLastDomain();
3802
3803 qDebug("Application title set to: %s.\n", title.toStdString().c_str());
3804 _window->setWindowTitle(title);
3805}
3806
3794void Application::domainChanged(QString domain) {3807void Application::domainChanged(QString domain) {
3795 qDebug("Application title set to: %s.\n", domain.toStdString().c_str());3808 qDebug("Application title set to: %s.\n", domain.toStdString().c_str());
3796 _window->setWindowTitle(domain);3809 _window->setWindowTitle(domain);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t