Changeset 51158 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Apr 28, 2014 5:33:21 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 93493
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r51149 r51158 442 442 return extraDataStringList(GUI_MachineWindowIcons, strID); 443 443 } 444 445 QString UIExtraDataManager::machineWindowNamePostfix(const QString &strID) const 446 { 447 return extraDataString(GUI_MachineWindowNamePostfix, strID); 448 } 444 449 #endif /* !Q_WS_MAC */ 445 450 -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h
r51149 r51158 129 129 /** Except Mac OS X: Returns redefined machine-window icon names. */ 130 130 QStringList machineWindowIconNames(const QString &strID) const; 131 /** Except Mac OS X: Returns redefined machine-window name postfix. */ 132 QString machineWindowNamePostfix(const QString &strID) const; 131 133 #endif /* !Q_WS_MAC */ 132 134 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDefs.cpp
r51149 r51158 53 53 #ifndef Q_WS_MAC 54 54 const char* UIDefs::GUI_MachineWindowIcons = "GUI/MachineWindowIcons"; 55 const char* UIDefs::GUI_MachineWindowNamePostfix = "GUI/MachineWindowNamePostfix"; 55 56 #endif /* !Q_WS_MAC */ 56 57 const char* UIDefs::GUI_RestrictedRuntimeMenus = "GUI/RestrictedRuntimeMenus"; -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDefs.h
r51149 r51158 122 122 #ifndef Q_WS_MAC 123 123 extern const char* GUI_MachineWindowIcons; 124 extern const char* GUI_MachineWindowNamePostfix; 124 125 #endif /* !Q_WS_MAC */ 125 126 extern const char* GUI_RestrictedRuntimeMenus; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp
r51004 r51158 468 468 /* Unusual on the Mac. */ 469 469 #ifndef Q_WS_MAC 470 strMachineName += " - " + defaultWindowTitle(); 470 const QString strUserProductName = uisession()->machineWindowNamePostfix(); 471 strMachineName += " - " + (strUserProductName.isEmpty() ? defaultWindowTitle() : strUserProductName); 471 472 #endif /* !Q_WS_MAC */ 472 473 if (m.GetMonitorCount() > 1) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r51149 r51158 1128 1128 if (!icon.isNull()) 1129 1129 m_pMachineWindowIcon = new QIcon(icon); 1130 1131 /* Load user's machine-window name postfix: */ 1132 m_strMachineWindowNamePostfix = gEDataManager->machineWindowNamePostfix(vboxGlobal().managedVMUuid()); 1130 1133 #endif /* !Q_WS_MAC */ 1131 1134 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r51149 r51158 102 102 /** Returns redefined machine-window icon. */ 103 103 QIcon* machineWindowIcon() const { return m_pMachineWindowIcon; } 104 /** Returns redefined machine-window name postfix. */ 105 QString machineWindowNamePostfix() const { return m_strMachineWindowNamePostfix; } 104 106 /** @} */ 105 107 #endif /* !Q_WS_MAC */ … … 354 356 /** Holds redefined machine-window icon. */ 355 357 QIcon *m_pMachineWindowIcon; 358 /** Holds redefined machine-window name postfix. */ 359 QString m_strMachineWindowNamePostfix; 356 360 /** @} */ 357 361 #endif /* !Q_WS_MAC */
Note:
See TracChangeset
for help on using the changeset viewer.