VirtualBox

儲存庫 vbox 的更動 62986


忽略:
時間撮記:
2016-8-4 下午01:31:16 (8 年 以前)
作者:
vboxsync
訊息:

FE/Qt: bugref:8422: Desktop-widget watchdog rework (part 01): Cleanup.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDesktopWidgetWatchdog.cpp

    r62493 r62986  
    1616 */
    1717
     18#ifdef VBOX_WITH_PRECOMPILED_HEADERS
     19# include <precomp.h>
     20#else  /* !VBOX_WITH_PRECOMPILED_HEADERS */
     21
    1822/* Qt includes: */
    19 #include <QApplication>
    20 #include <QDesktopWidget>
     23# include <QApplication>
     24# include <QDesktopWidget>
    2125
    2226/* GUI includes: */
    23 #include "VBoxGlobal.h"
    24 #include "UIDesktopWidgetWatchdog.h"
     27# include "VBoxGlobal.h"
     28# include "UIDesktopWidgetWatchdog.h"
    2529
    2630/* Other VBox includes: */
    27 #include <iprt/assert.h>
     31# include <iprt/assert.h>
     32
     33#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
    2834
    2935
     
    5561    int m_iHostScreenIndex;
    5662};
     63
     64
     65/*********************************************************************************************************************************
     66*   Class UIInvisibleWindow implementation.                                                                                      *
     67*********************************************************************************************************************************/
    5768
    5869UIInvisibleWindow::UIInvisibleWindow(int iHostScreenIndex)
     
    8798}
    8899
     100
     101/*********************************************************************************************************************************
     102*   Class UIDesktopWidgetWatchdog implementation.                                                                                *
     103*********************************************************************************************************************************/
     104
    89105UIDesktopWidgetWatchdog::UIDesktopWidgetWatchdog(QObject *pParent)
    90106    : QObject(pParent)
     
    102118}
    103119
    104 const QRect     UIDesktopWidgetWatchdog::screenGeometry(int iHostScreenIndex /* = -1 */) const
     120const QRect UIDesktopWidgetWatchdog::screenGeometry(int iHostScreenIndex /* = -1 */) const
    105121{
    106122    /* Make sure index is valid: */
     
    161177    AssertPtrReturnVoid(pWorker);
    162178    {
    163         /* Remember created worker: */
     179        /* Remember created worker (replace if necessary): */
    164180        if (m_availableGeometryWorkers.value(iHostScreenIndex))
    165181            delete m_availableGeometryWorkers.value(iHostScreenIndex);
    166182        m_availableGeometryWorkers[iHostScreenIndex] = pWorker;
     183
    167184        /* Get the screen-geometry: */
    168185        const QRect hostScreenGeometry = screenGeometry(iHostScreenIndex);
    169186        /* Use the screen-geometry as the temporary value for available-geometry: */
    170187        m_availableGeometryData[iHostScreenIndex] = hostScreenGeometry;
     188
    171189        /* Connect worker listener: */
    172190        connect(pWorker, SIGNAL(sigHostScreenAvailableGeometryCalculated(int, QRect)),
    173191                this, SLOT(sltHandleHostScreenAvailableGeometryCalculated(int, QRect)));
     192
    174193        /* Place worker to corresponding host-screen: */
    175194        pWorker->move(hostScreenGeometry.topLeft());
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette