History

add user UUID to application window title

Stephen Birarda committed 12 years ago

Commit 8fc55bd1 parent 7a3ce7c2 files · +8 −11Browse files

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

Unified · Split

interface/src/Application.cpp+4−10
@@ -4003,18 +4003,12 @@ void Application::setMenuShortcutsEnabled(bool enabled) { · 4002 unmodified lines
4003}4003}
4004 4004
4005void Application::updateWindowTitle(){4005void Application::updateWindowTitle(){
4006 QString title = "";4006
4007
4008 QString buildVersion = " (build " + applicationVersion() + ")";4007 QString buildVersion = " (build " + applicationVersion() + ")";
4009 4008 NodeList* nodeList = NodeList::getInstance();
4010 QString username = _profile.getUsername();
4011 if(!username.isEmpty()){
4012 title += username;
4013 title += " @ ";
4014 }
4015 4009
4016 title += NodeList::getInstance()->getDomainHostname();4010 QString title = QString() + _profile.getUsername() + " " + nodeList->getOwnerUUID().toString()
4017 title += buildVersion;4011 + " @ " + nodeList->getDomainHostname() + buildVersion;
4018 4012
4019 qDebug("Application title set to: %s", title.toStdString().c_str());4013 qDebug("Application title set to: %s", title.toStdString().c_str());
4020 _window->setWindowTitle(title);4014 _window->setWindowTitle(title);

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