VirtualBox

Changeset 64762 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 28, 2016 3:49:53 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: Do not directly include QtGlobal, within latest Qt5 it causes OSX to undefine QT_VERSION macro which we directly defined (s.a. r111568) to make OSX moc see ifdefed signals and slots.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QILineEdit.cpp

    r63309 r64762  
    2121
    2222/* Qt includes: */
    23 # include <QtGlobal>                    /* for QT_VERSION */
    24 # if QT_VERSION < 0x050000
    25 #  ifdef VBOX_WS_WIN
     23# ifdef VBOX_WS_WIN
     24#  include <QtGlobal> /* for QT_VERSION */
     25#  if QT_VERSION < 0x050000
    2626#   include <QLibrary>
    2727#  endif
     
    3232
    3333/* Other VBox includes: */
    34 # if QT_VERSION < 0x050000
    35 #  ifdef VBOX_WS_WIN
     34# ifdef VBOX_WS_WIN
     35#  if QT_VERSION < 0x050000
    3636#   include "iprt/ldr.h"
    3737#  endif
     
    3939
    4040/* External includes: */
    41 # if QT_VERSION < 0x050000
    42 #  ifdef VBOX_WS_WIN
     41# ifdef VBOX_WS_WIN
     42#  if QT_VERSION < 0x050000
    4343#   include <iprt/win/windows.h>
    4444#  endif
     
    4949/* Qt includes: */
    5050#include <QStyleOptionFrame>
    51 #if QT_VERSION < 0x050000
    52 # ifdef VBOX_WS_WIN
     51#ifdef VBOX_WS_WIN
     52# if QT_VERSION < 0x050000
    5353#  include <QWindowsVistaStyle>
    5454# endif
     
    8181    QSize sa = style()->sizeFromContents (QStyle::CT_LineEdit, &sof, sc, this);
    8282
    83 #if QT_VERSION < 0x050000
    84 # ifdef VBOX_WS_WIN
     83#ifdef VBOX_WS_WIN
     84# if QT_VERSION < 0x050000
    8585    /* Vista l&f style has a bug where the last parameter of sizeFromContents
    8686     * function ('widget' what corresponds to 'this' in our class) is ignored.
     
    9999            sa -= QSize(23, 0);
    100100    }
    101 # endif /* VBOX_WS_WIN */
    102 #endif /* QT_VERSION < 0x050000 */
     101# endif /* QT_VERSION < 0x050000 */
     102#endif /* VBOX_WS_WIN */
    103103
    104104    return sa;
  • trunk/src/VBox/Frontends/VirtualBox/src/precomp.h

    r64513 r64762  
    212212//#include <QXmlStreamReader> - only used once
    213213//#include <QXmlStreamWriter> - only used once
    214 #include <QtGlobal>
    215214
    216215
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.h

    r63609 r64762  
    2020
    2121/* Qt includes: */
    22 #include <QtGlobal>
    2322#include <QMap>
    2423#include <QObject>
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.h

    r64492 r64762  
    2020
    2121/* Qt includes: */
    22 #include <QtGlobal> /* for VBOX_WS_MAC */
    2322#ifdef VBOX_WS_MAC
    2423/* Somewhere Carbon.h includes AssertMacros.h which defines the macro "check".
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