VirtualBox

Ignore:
Timestamp:
Aug 4, 2016 4:31:02 PM (8 years ago)
Author:
vboxsync
Message:

Burn fix for r109599 (moc isn't aware of QT_VERSION).

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

Legend:

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

    r62999 r63002  
    147147}
    148148
     149void UIDesktopWidgetWatchdog::sltHandleHostScreenCountChanged(int cHostScreenCount)
     150{
     151    Q_UNUSED(cHostScreenCount);
     152
    149153#if QT_VERSION < 0x050000
    150 
    151 void UIDesktopWidgetWatchdog::sltHandleHostScreenCountChanged(int cHostScreenCount)
    152 {
    153154//    printf("UIDesktopWidgetWatchdog::sltHandleHostScreenCountChanged(%d)\n", cHostScreenCount);
    154155
    155156    /* Update host-screen configuration: */
    156157    updateHostScreenConfiguration(cHostScreenCount);
    157 }
    158 
    159 #else /* QT_VERSION >= 0x050000 */
     158#endif /* QT_VERSION < 0x050000 */
     159}
    160160
    161161void UIDesktopWidgetWatchdog::sltHostScreenAdded(QScreen *pHostScreen)
    162162{
     163    Q_UNUSED(pHostScreen);
     164
     165#if QT_VERSION >= 0x050000
    163166//    printf("UIDesktopWidgetWatchdog::sltHostScreenAdded(%d)\n", screenCount());
    164167
    165168    /* Update host-screen configuration: */
    166169    updateHostScreenConfiguration();
     170#endif /* QT_VERSION >= 0x050000 */
    167171}
    168172
    169173void UIDesktopWidgetWatchdog::sltHostScreenRemoved(QScreen *pHostScreen)
    170174{
     175    Q_UNUSED(pHostScreen);
     176
     177#if QT_VERSION >= 0x050000
    171178//    printf("UIDesktopWidgetWatchdog::sltHostScreenRemoved(%d)\n", screenCount());
    172179
    173180    /* Update host-screen configuration: */
    174181    updateHostScreenConfiguration();
    175 }
    176 
    177182#endif /* QT_VERSION >= 0x050000 */
     183}
    178184
    179185void UIDesktopWidgetWatchdog::sltHandleHostScreenResized(int iHostScreenIndex)
     
    202208{
    203209    /* Prepare connections: */
    204 #if QT_VERSION < 0x050000
    205210    connect(QApplication::desktop(), SIGNAL(screenCountChanged(int)), this, SLOT(sltHandleHostScreenCountChanged(int)));
    206 #else /* QT_VERSION >= 0x050000 */
    207211    connect(qApp, SIGNAL(screenAdded(QScreen *)), this, SLOT(sltHostScreenAdded(QScreen *)));
    208212    connect(qApp, SIGNAL(screenRemoved(QScreen *)), this, SLOT(sltHostScreenRemoved(QScreen *)));
    209 #endif /* QT_VERSION >= 0x050000 */
    210213    connect(QApplication::desktop(), SIGNAL(resized(int)), this, SLOT(sltHandleHostScreenResized(int)));
    211214
     
    217220{
    218221    /* Cleanup connections: */
    219 #if QT_VERSION < 0x050000
    220222    disconnect(QApplication::desktop(), SIGNAL(screenCountChanged(int)), this, SLOT(sltHandleHostScreenCountChanged(int)));
    221 #else /* QT_VERSION >= 0x050000 */
    222223    disconnect(qApp, SIGNAL(screenAdded(QScreen *)), this, SLOT(sltHostScreenAdded(QScreen *)));
    223224    disconnect(qApp, SIGNAL(screenRemoved(QScreen *)), this, SLOT(sltHostScreenRemoved(QScreen *)));
    224 #endif /* QT_VERSION >= 0x050000 */
    225225    disconnect(QApplication::desktop(), SIGNAL(resized(int)), this, SLOT(sltHandleHostScreenResized(int)));
    226226
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDesktopWidgetWatchdog.h

    r62999 r63002  
    5656private slots:
    5757
    58 #if QT_VERSION < 0x050000
    5958    /** Handles host-screen count change to @a cHostScreenCount. */
    6059    void sltHandleHostScreenCountChanged(int cHostScreenCount);
    61 #else /* QT_VERSION >= 0x050000 */
    6260    /** Handles @a pHostScreen adding. */
    6361    void sltHostScreenAdded(QScreen *pHostScreen);
    6462    /** Handles @a pHostScreen removing. */
    6563    void sltHostScreenRemoved(QScreen *pHostScreen);
    66 #endif /* QT_VERSION >= 0x050000 */
    6764
    6865    /** Handles resize for the host-screen with @a iHostScreenIndex. */
Note: See TracChangeset for help on using the changeset viewer.

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