儲存庫 vbox 的更動 62986
- 時間撮記:
- 2016-8-4 下午01:31:16 (8 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDesktopWidgetWatchdog.cpp
r62493 r62986 16 16 */ 17 17 18 #ifdef VBOX_WITH_PRECOMPILED_HEADERS 19 # include <precomp.h> 20 #else /* !VBOX_WITH_PRECOMPILED_HEADERS */ 21 18 22 /* Qt includes: */ 19 # include <QApplication>20 # include <QDesktopWidget>23 # include <QApplication> 24 # include <QDesktopWidget> 21 25 22 26 /* GUI includes: */ 23 # include "VBoxGlobal.h"24 # include "UIDesktopWidgetWatchdog.h"27 # include "VBoxGlobal.h" 28 # include "UIDesktopWidgetWatchdog.h" 25 29 26 30 /* Other VBox includes: */ 27 #include <iprt/assert.h> 31 # include <iprt/assert.h> 32 33 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 28 34 29 35 … … 55 61 int m_iHostScreenIndex; 56 62 }; 63 64 65 /********************************************************************************************************************************* 66 * Class UIInvisibleWindow implementation. * 67 *********************************************************************************************************************************/ 57 68 58 69 UIInvisibleWindow::UIInvisibleWindow(int iHostScreenIndex) … … 87 98 } 88 99 100 101 /********************************************************************************************************************************* 102 * Class UIDesktopWidgetWatchdog implementation. * 103 *********************************************************************************************************************************/ 104 89 105 UIDesktopWidgetWatchdog::UIDesktopWidgetWatchdog(QObject *pParent) 90 106 : QObject(pParent) … … 102 118 } 103 119 104 const QRect 120 const QRect UIDesktopWidgetWatchdog::screenGeometry(int iHostScreenIndex /* = -1 */) const 105 121 { 106 122 /* Make sure index is valid: */ … … 161 177 AssertPtrReturnVoid(pWorker); 162 178 { 163 /* Remember created worker : */179 /* Remember created worker (replace if necessary): */ 164 180 if (m_availableGeometryWorkers.value(iHostScreenIndex)) 165 181 delete m_availableGeometryWorkers.value(iHostScreenIndex); 166 182 m_availableGeometryWorkers[iHostScreenIndex] = pWorker; 183 167 184 /* Get the screen-geometry: */ 168 185 const QRect hostScreenGeometry = screenGeometry(iHostScreenIndex); 169 186 /* Use the screen-geometry as the temporary value for available-geometry: */ 170 187 m_availableGeometryData[iHostScreenIndex] = hostScreenGeometry; 188 171 189 /* Connect worker listener: */ 172 190 connect(pWorker, SIGNAL(sigHostScreenAvailableGeometryCalculated(int, QRect)), 173 191 this, SLOT(sltHandleHostScreenAvailableGeometryCalculated(int, QRect))); 192 174 193 /* Place worker to corresponding host-screen: */ 175 194 pWorker->move(hostScreenGeometry.topLeft());
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器