VirtualBox

Changeset 62989 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 4, 2016 1:50:58 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109598
Message:

FE/Qt: bugref:8422: Desktop-widget watchdog rework (part 04): Renaming.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/globals
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDesktopWidgetWatchdog.cpp

    r62988 r62989  
    140140}
    141141
    142 void UIDesktopWidgetWatchdog::sltUpdateHostScreenConfiguration(int cHostScreenCount /* = -1 */)
    143 {
    144 //    printf("UIDesktopWidgetWatchdog::sltUpdateHostScreenConfiguration(%d)\n", cHostScreenCount);
     142void UIDesktopWidgetWatchdog::sltHandleHostScreenCountChanged(int cHostScreenCount)
     143{
     144//    printf("UIDesktopWidgetWatchdog::sltHandleHostScreenCountChanged(%d)\n", cHostScreenCount);
    145145
    146146    /* Update host-screen configuration: */
     
    148148}
    149149
    150 void UIDesktopWidgetWatchdog::sltRecalculateHostScreenAvailableGeometry(int iHostScreenIndex)
    151 {
    152 //    printf("UIDesktopWidgetWatchdog::sltRecalculateHostScreenAvailableGeometry(%d)\n", iHostScreenIndex);
    153 
    154     /* Recalculate host-screen available-geometry: */
    155     recalculateHostScreenAvailableGeometry(iHostScreenIndex);
     150void UIDesktopWidgetWatchdog::sltHandleHostScreenResized(int iHostScreenIndex)
     151{
     152//    printf("UIDesktopWidgetWatchdog::sltHandleHostScreenResized(%d)\n", iHostScreenIndex);
     153
     154    /* Update host-screen available-geometry: */
     155    updateHostScreenAvailableGeometry(iHostScreenIndex);
    156156}
    157157
     
    173173{
    174174    /* Prepare connections: */
    175     connect(m_pDesktopWidget, SIGNAL(screenCountChanged(int)), this, SLOT(sltUpdateHostScreenConfiguration(int)));
    176     connect(m_pDesktopWidget, SIGNAL(resized(int)), this, SLOT(sltRecalculateHostScreenAvailableGeometry(int)));
     175    connect(m_pDesktopWidget, SIGNAL(screenCountChanged(int)), this, SLOT(sltHandleHostScreenCountChanged(int)));
     176    connect(m_pDesktopWidget, SIGNAL(resized(int)), this, SLOT(sltHandleHostScreenResized(int)));
    177177
    178178    /* Update host-screen configuration: */
     
    183183{
    184184    /* Cleanup connections: */
    185     disconnect(m_pDesktopWidget, SIGNAL(screenCountChanged(int)), this, SLOT(sltUpdateHostScreenConfiguration(int)));
    186     disconnect(m_pDesktopWidget, SIGNAL(resized(int)), this, SLOT(sltRecalculateHostScreenAvailableGeometry(int)));
     185    disconnect(m_pDesktopWidget, SIGNAL(screenCountChanged(int)), this, SLOT(sltHandleHostScreenCountChanged(int)));
     186    disconnect(m_pDesktopWidget, SIGNAL(resized(int)), this, SLOT(sltHandleHostScreenResized(int)));
    187187
    188188    /* Cleanup existing workers finally: */
     
    202202    m_availableGeometryData.resize(m_cHostScreenCount);
    203203
    204     /* Calculate host-screen available-geometry for each particular host-screen: */
     204    /* Update host-screen available-geometry for each particular host-screen: */
    205205    for (int iHostScreenIndex = 0; iHostScreenIndex < m_cHostScreenCount; ++iHostScreenIndex)
    206         recalculateHostScreenAvailableGeometry(iHostScreenIndex);
    207 }
    208 
    209 void UIDesktopWidgetWatchdog::recalculateHostScreenAvailableGeometry(int iHostScreenIndex)
     206        updateHostScreenAvailableGeometry(iHostScreenIndex);
     207}
     208
     209void UIDesktopWidgetWatchdog::updateHostScreenAvailableGeometry(int iHostScreenIndex)
    210210{
    211211    /* Make sure index is valid: */
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDesktopWidgetWatchdog.h

    r62988 r62989  
    5050private slots:
    5151
    52     /** Updates host-screen configuration according to new @a cHostScreenCount. */
    53     void sltUpdateHostScreenConfiguration(int cHostScreenCount);
     52    /** Handles host-screen count change to @a cHostScreenCount. */
     53    void sltHandleHostScreenCountChanged(int cHostScreenCount);
    5454
    55     /** Recalculates available-geometry for the host-screen with @a iHostScreenIndex. */
    56     void sltRecalculateHostScreenAvailableGeometry(int iHostScreenIndex);
     55    /** Handles resize for the host-screen with @a iHostScreenIndex. */
     56    void sltHandleHostScreenResized(int iHostScreenIndex);
    5757
    5858    /** Handles @a availableGeometry calculation result for the host-screen with @a iHostScreenIndex. */
     
    6767
    6868    /** Updates host-screen configuration according to new @a cHostScreenCount.
    69       * @note cHostScreenCount can be equal to -1 which means we have to acquire it ourselves. */
     69      * @note If cHostScreenCount is equal to -1 we have to acquire it ourselves. */
    7070    void updateHostScreenConfiguration(int cHostScreenCount = -1);
    7171
    72     /** Recalculates available-geometry for the host-screen with @a iHostScreenIndex. */
    73     void recalculateHostScreenAvailableGeometry(int iHostScreenIndex);
     72    /** Update available-geometry for the host-screen with @a iHostScreenIndex. */
     73    void updateHostScreenAvailableGeometry(int iHostScreenIndex);
    7474
    7575    /** Cleanups existing workers. */
Note: See TracChangeset for help on using the changeset viewer.

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