Added the name and location to the title of the MainWindow.

Get the name and location for the window tile and tray tooltip only once at start.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4182 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2011-05-01 23:30:45 +00:00
parent 60138e0137
commit 06bc6029f2
2 changed files with 17 additions and 54 deletions

View file

@ -205,27 +205,12 @@ private slots:
void on_actionQuick_Start_Wizard_activated();
private:
/** Create the actions on the tray menu or menubar */
void createActions();
void createTrayIcon();
void createNotifyIcons();
void updateTrayCombine();
static MainWindow *_instance;
/** Defines the actions for the tray menu */
QAction* _settingsAct;
QAction* _bandwidthAct;
QAction* _messengerwindowAct;
QAction* _messagesAct;
QAction* _smplayerAct;
QAction* _helpAct;
#ifdef UNFINISHED
QAction* _appAct;
#endif
/** A BandwidthGraph object which handles monitoring RetroShare bandwidth usage */
BandwidthGraph* _bandwidthGraph;
@ -236,6 +221,8 @@ private:
void loadStyleSheet(const QString &sheetName);
QString nameAndLocation;
QSystemTrayIcon *trayIcon;
QSystemTrayIcon *trayIconCombined;
QSystemTrayIcon *trayIconMessages;