Changeset 2319 in vbox
- Timestamp:
- Apr 23, 2007 12:01:26 PM (18 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h
r2185 r2319 470 470 471 471 bool event (QEvent *e); 472 bool eventFilter (QObject *, QEvent *); 472 473 473 474 private: -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r2315 r2319 1135 1135 #endif 1136 1136 1137 vboxGlobal().languageChange();1138 1139 1137 /* 1140 1138 * Note: All action shortcuts should be added to the menu text in the -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r2185 r2319 2803 2803 } 2804 2804 2805 bool VBoxGlobal::eventFilter (QObject *aObject, QEvent *aEvent) 2806 { 2807 if (aObject == QApplication::desktop() && 2808 aEvent->type() == QEvent::LanguageChange) 2809 languageChange(); 2810 return QObject::eventFilter (aObject, aEvent); 2811 } 2812 2805 2813 // Private members 2806 2814 //////////////////////////////////////////////////////////////////////////////// … … 2918 2926 vm_state_color.insert (CEnums::Discarding, &Qt::green); 2919 2927 2920 languageChange();2928 QApplication::desktop()->installEventFilter (this); 2921 2929 2922 2930 // create default non-null global settings … … 2935 2943 if (!languageId.isNull()) 2936 2944 loadLanguage (languageId); 2945 2946 languageChange(); 2937 2947 2938 2948 // process command line -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxSelectorWnd.cpp
r2311 r2319 487 487 #ifdef Q_WS_MAC 488 488 vmTools->setMacStyle(); 489 #endif 489 #endif 490 490 491 491 /* add actions to menubar */ … … 1010 1010 #endif 1011 1011 1012 vboxGlobal().languageChange();1013 1014 1012 vmTabWidget->changeTab (vmDetailsView, tr ("&Details")); 1015 1013 /* note: Snapshots and Details tabs are changed dynamically by
Note:
See TracChangeset
for help on using the changeset viewer.