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
37913791 }
37923792 }
37933793
3794+void 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+
37943807 void Application::domainChanged(QString domain) {
37953808 qDebug("Application title set to: %s.\n", domain.toStdString().c_str());
37963809 _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