Changeset 51375 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- May 23, 2014 3:59:40 PM (11 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.cpp
r51267 r51375 47 47 /* UIAction stuff: */ 48 48 UIAction::UIAction(UIActionPool *pParent, UIActionType type) 49 : Q IWithRetranslateUI3<QAction>(pParent)49 : QAction(pParent) 50 50 , m_pActionPool(pParent) 51 51 , m_type(type) -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.h
r51267 r51375 69 69 70 70 /* Basic abstract QAction reimplemetation, extending interface: */ 71 class UIAction : public Q IWithRetranslateUI3<QAction>71 class UIAction : public QAction 72 72 { 73 73 Q_OBJECT; … … 97 97 void showShortcut(); 98 98 void hideShortcut(); 99 100 /** Calls for action translation handler. */ 101 virtual void retranslateUi() = 0; 99 102 100 103 protected: … … 230 233 231 234 /* Singleton action pool: */ 232 class UIActionPool : public Q Object235 class UIActionPool : public QIWithRetranslateUI3<QObject> 233 236 { 234 237 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionPoolRuntime.cpp
r50309 r51375 1246 1246 /* Prepare connections: */ 1247 1247 connect(gShortcutPool, SIGNAL(sigMachineShortcutsReloaded()), this, SLOT(sltApplyShortcuts())); 1248 } 1249 1250 void UIActionPoolRuntime::retranslateUi() 1251 { 1252 /* Translate all the actions: */ 1253 foreach (const int iActionPoolKey, m_pool.keys()) 1254 m_pool[iActionPoolKey]->retranslateUi(); 1255 /* Re-apply shortcuts: */ 1256 sltApplyShortcuts(); 1248 1257 } 1249 1258 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionPoolRuntime.h
r50309 r51375 103 103 UIActionPoolRuntime(); 104 104 105 /** Translation handler. */ 106 void retranslateUi(); 107 105 108 /* Helper: Shortcuts stuff: */ 106 109 QString shortcutsExtraDataID() const; -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIActionPoolSelector.cpp
r51267 r51375 981 981 } 982 982 983 void UIActionPoolSelector::retranslateUi() 984 { 985 /* Translate all the actions: */ 986 foreach (const int iActionPoolKey, m_pool.keys()) 987 m_pool[iActionPoolKey]->retranslateUi(); 988 /* Re-apply shortcuts: */ 989 sltApplyShortcuts(); 990 } 991 983 992 QString UIActionPoolSelector::shortcutsExtraDataID() const 984 993 { -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIActionPoolSelector.h
r44448 r51375 83 83 UIActionPoolSelector(); 84 84 85 /** Translation handler. */ 86 void retranslateUi(); 87 85 88 /* Helper: Shortcuts stuff: */ 86 89 QString shortcutsExtraDataID() const;
Note:
See TracChangeset
for help on using the changeset viewer.