儲存庫 vbox 的更動 30792
- 時間撮記:
- 2010-7-12 下午12:43:02 (14 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp
r30753 r30792 32 32 #include "UISession.h" 33 33 #include "UIMachineLogic.h" 34 #include "UIMachineWindowNormal.h" 35 #include "UIMachineWindowFullscreen.h" 36 #include "UIMachineWindowSeamless.h" 37 #include "UIMachineWindowScale.h" 34 #include "UIMachineWindow.h" 38 35 #include "UIMachineView.h" 39 36 … … 122 119 m_windows.insert(uIndex, pMachineWindow); 123 120 /* Install event-filter for window: */ 124 switch (machineLogic()->visualStateType()) 125 { 126 case UIVisualStateType_Normal: 127 static_cast<UIMachineWindowNormal*>(m_windows[uIndex])->installEventFilter(this); 128 break; 129 case UIVisualStateType_Fullscreen: 130 static_cast<UIMachineWindowFullscreen*>(m_windows[uIndex])->installEventFilter(this); 131 break; 132 case UIVisualStateType_Seamless: 133 static_cast<UIMachineWindowSeamless*>(m_windows[uIndex])->installEventFilter(this); 134 break; 135 case UIVisualStateType_Scale: 136 static_cast<UIMachineWindowScale*>(m_windows[uIndex])->installEventFilter(this); 137 break; 138 default: 139 break; 140 } 121 m_windows[uIndex]->machineWindow()->installEventFilter(this); 141 122 } 142 123 … … 1467 1448 while (!pResultWindow && i != m_windows.constEnd()) 1468 1449 { 1469 switch (machineLogic()->visualStateType()) 1470 { 1471 case UIVisualStateType_Normal: 1472 { 1473 UIMachineWindowNormal *pIteratedWindow = static_cast<UIMachineWindowNormal*>(i.value()); 1474 if (pIteratedWindow == pWatchedObject) 1475 { 1476 pResultWindow = pIteratedWindow; 1477 continue; 1478 } 1479 break; 1480 } 1481 case UIVisualStateType_Fullscreen: 1482 { 1483 UIMachineWindowFullscreen *pIteratedWindow = static_cast<UIMachineWindowFullscreen*>(i.value()); 1484 if (pIteratedWindow == pWatchedObject) 1485 { 1486 pResultWindow = pIteratedWindow; 1487 continue; 1488 } 1489 break; 1490 } 1491 case UIVisualStateType_Seamless: 1492 { 1493 UIMachineWindowSeamless *pIteratedWindow = static_cast<UIMachineWindowSeamless*>(i.value()); 1494 if (pIteratedWindow == pWatchedObject) 1495 { 1496 pResultWindow = pIteratedWindow; 1497 continue; 1498 } 1499 break; 1500 } 1501 case UIVisualStateType_Scale: 1502 { 1503 UIMachineWindowScale *pIteratedWindow = static_cast<UIMachineWindowScale*>(i.value()); 1504 if (pIteratedWindow == pWatchedObject) 1505 { 1506 pResultWindow = pIteratedWindow; 1507 continue; 1508 } 1509 break; 1510 } 1511 default: 1512 break; 1450 UIMachineWindow *pIteratedWindow = i.value(); 1451 if (pIteratedWindow->machineWindow() == pWatchedObject) 1452 { 1453 pResultWindow = pIteratedWindow; 1454 continue; 1513 1455 } 1514 1456 ++i; … … 1523 1465 while (!pResultView && i != m_views.constEnd()) 1524 1466 { 1525 UIMachineView *pIteratedView = qobject_cast<UIMachineView*>(i.value());1467 UIMachineView *pIteratedView = i.value(); 1526 1468 if (pIteratedView == pWatchedObject) 1527 1469 {
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器