Changeset 57895 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Sep 25, 2015 2:00:38 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/UIWindowMenuManager.cpp
r57894 r57895 115 115 { 116 116 /* Translate menu: */ 117 m_pWindowMenu->setTitle( tr("&Window"));117 m_pWindowMenu->setTitle(QApplication::translate("UIActionPool", "&Window")); 118 118 119 119 /* Translate menu 'Minimize' action: */ 120 m_pMinimizeAction->setText( tr("Minimize"));120 m_pMinimizeAction->setText(QApplication::translate("UIActionPool", "&Minimize")); 121 121 m_pMinimizeAction->setShortcut(QKeySequence("Ctrl+M")); 122 123 /* Translate other menu-actions: */ 124 foreach (QAction *pAction, m_windows.values()) 125 { 126 /* Get corresponding window from action's data: */ 127 QWidget *pWindow = pAction->data().value<QWidget*>(); 128 /* Use the window's title as the action's text: */ 129 pAction->setText(pWindow->windowTitle()); 130 } 122 131 } 123 132 … … 313 322 } 314 323 324 /* Besides our own retranslation, we should also retranslate 325 * everything on any registered widget title change event: */ 326 if (pObject && type == QEvent::WindowTitleChange) 327 { 328 QWidget *pWidget = qobject_cast<QWidget*>(pObject); 329 if (pWidget && m_helpers.contains(pWidget)) 330 retranslateUi(); 331 } 332 315 333 /* Call to base-class: */ 316 334 return QIWithRetranslateUI3<QObject>::eventFilter(pObject, pEvent);
Note:
See TracChangeset
for help on using the changeset viewer.