[KDE/Mac] OSX/CI: Found umpteen uses of Q_WS_MAC in Qt5 itself

Marko Käning mk-lists at email.de
Wed Jan 21 09:10:00 UTC 2015


Hi guys,

I ran for a couple of times into trouble with Q_WS_MAC on KF5...

... so I finally decided to grep the whole KF5 code base and found, that Qt5 itself
has a lot of usage of this define.

I haven’t done a deep analysis, but I think some of these uses should be dodgy.

I must be wrong...

Regards,
Marko


...


Header files:
---
qtbase/src/widgets/dialogs/qcolordialog_p.h:#ifdef Q_WS_MAC
qtbase/src/widgets/graphicsview/qgraphicsview_p.h:#ifdef Q_WS_MAC
qtbase/src/widgets/graphicsview/qgraphicsview_p.h:#endif // !Q_WS_MAC
qtbase/src/widgets/kernel/qapplication_p.h:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qapplication_p.h:#if defined(Q_WS_MAC) || defined(Q_WS_X11)
qtbase/src/widgets/kernel/qwidget.h:#if defined(Q_WS_MAC)
qtbase/src/widgets/kernel/qwidget_p.h:#elif defined(Q_WS_MAC) // <--------------------------------------------------------- MAC
qtbase/src/widgets/kernel/qwidget_p.h:#elif defined(Q_WS_MAC) // <------------------------------------------------------ MAC
qtbase/src/widgets/kernel/qwidget_p.h:#elif defined(Q_WS_MAC) // <--------------------------------------------------------- MAC (old stuff)
qtbase/src/widgets/styles/qmacstyle_mac_p.h:#endif // Q_WS_MAC
qtbase/src/widgets/widgets/qabstractscrollarea_p.h:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qmainwindowlayout_p.h:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qmainwindowlayout_p.h:#endif // Q_WS_MAC
qtbase/src/widgets/widgets/qmainwindowlayout_p.h:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qmainwindowlayout_p.h:#endif // Q_WS_MAC
qtbase/src/widgets/widgets/qpushbutton.h:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qpushbutton.h:#endif // Q_WS_MAC
qtbase/src/widgets/widgets/qpushbutton_p.h:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qtabbar_p.h:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qtabbar_p.h:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qwidgetlinecontrol_p.h:#if defined(Q_WS_MAC)
qtbase/src/widgets/widgets/qwidgetlinecontrol_p.h:#if defined(Q_WS_MAC)
qtbase/src/widgets/widgets/qwidgetlinecontrol_p.h:#if defined(Q_WS_MAC)
qtbase/src/widgets/widgets/qwidgetlinecontrol_p.h:#if defined(Q_WS_MAC)
qtquick1/src/imports/shaders/glfunctions.h:#ifndef Q_WS_MAC
---


CPP files:
---
qtbase/examples/widgets/graphicsview/boxes/scene.cpp:#ifdef Q_WS_MAC
qtbase/examples/widgets/tools/i18n/languagechooser.cpp:#ifdef Q_WS_MAC
qtbase/examples/widgets/tools/i18n/languagechooser.cpp:#ifdef Q_WS_MAC
qtbase/src/gui/image/qicon.cpp:#ifdef Q_WS_MAC
qtbase/src/gui/image/qiconloader.cpp:#ifdef Q_WS_MAC
qtbase/src/gui/image/qiconloader.cpp:#if defined(Q_WS_MAC)
qtbase/src/widgets/dialogs/qcolordialog.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/dialogs/qcolordialog.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/dialogs/qcolordialog.cpp:#if defined(Q_WS_MAC)
qtbase/src/widgets/dialogs/qcolordialog.cpp:#if defined(Q_WS_MAC)
qtbase/src/widgets/dialogs/qfiledialog.cpp://#if defined(Q_WS_WIN) || defined(Q_WS_MAC)
qtbase/src/widgets/dialogs/qfiledialog.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/dialogs/qprogressdialog.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/doc/snippets/code/doc_src_styles.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/graphicsview/qgraphicsscene.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/graphicsview/qgraphicswidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/graphicsview/qgraphicswidget_p.cpp:#if defined(Q_WS_MAC) && !defined(QT_NO_STYLE_MAC)
qtbase/src/widgets/graphicsview/qgraphicswidget_p.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/itemviews/qabstractitemview.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/itemviews/qabstractitemview.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/itemviews/qabstractitemview.cpp:#ifndef Q_WS_MAC
qtbase/src/widgets/itemviews/qheaderview.cpp:#if !defined(Q_WS_MAC)
qtbase/src/widgets/itemviews/qtreeview.cpp:#if defined(Q_WS_MAC) && !defined(QT_NO_STYLE_MAC)
qtbase/src/widgets/kernel/qtooltip.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qtooltip.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qtooltip.cpp:#if defined(Q_WS_MAC) && !defined(QT_NO_EFFECTS)
qtbase/src/widgets/kernel/qtooltip.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qtooltip.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qtooltip.cpp:#if !defined(QT_NO_EFFECTS) && !defined(Q_WS_MAC)
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#elif defined(Q_WS_MAC)
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#endif // Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#ifndef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp://#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#endif // Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#if defined(Q_WS_WIN) || defined(Q_WS_X11)|| defined(Q_WS_MAC)
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#endif // Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#endif // Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#endif // Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#endif // Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#endif // Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#endif // Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#if defined(Q_WS_MAC)
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#if !defined(Q_WS_MAC)
qtbase/src/widgets/kernel/qwidget.cpp:#ifndef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#ifndef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#ifndef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#endif // Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#endif // Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#if defined(Q_WS_WIN) || defined(Q_WS_MAC)
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#endif // Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#elif defined Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:// #ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#if defined(Q_WS_WIN) || defined(Q_WS_X11) || defined(Q_WS_MAC)
qtbase/src/widgets/kernel/qwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/kernel/qwidget.cpp:#if defined(Q_WS_WIN) || defined(Q_WS_MAC)
qtbase/src/widgets/kernel/qwidget.cpp:#ifndef Q_WS_MAC
qtbase/src/widgets/kernel/qwidgetbackingstore.cpp:#if defined(Q_WS_MAC)
qtbase/src/widgets/kernel/qwidgetbackingstore.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/styles/qstylefactory.cpp:#  ifdef Q_WS_MAC
qtbase/src/widgets/styles/qstylefactory.cpp:# ifdef Q_WS_MAC
qtbase/src/widgets/styles/qstyleoption.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/styles/qstylesheetstyle.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/util/qflickgesture.cpp:#if defined(Q_WS_MAC)
qtbase/src/widgets/util/qscroller.cpp:#if !defined(Q_WS_MAC)
qtbase/src/widgets/util/qscroller.cpp:#endif // !Q_WS_MAC
qtbase/src/widgets/widgets/qabstractscrollarea.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qabstractscrollarea.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qabstractscrollarea.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qabstractscrollarea.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qabstractscrollarea.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qabstractscrollarea.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qabstractscrollarea.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qabstractscrollarea.cpp:#ifndef Q_WS_MAC
qtbase/src/widgets/widgets/qabstractscrollarea.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qabstractslider.cpp:#ifndef Q_WS_MAC
qtbase/src/widgets/widgets/qcalendarwidget.cpp:#ifndef Q_WS_MAC
qtbase/src/widgets/widgets/qcombobox.cpp:#if defined(Q_WS_MAC) && !defined(QT_NO_EFFECTS) && !defined(QT_NO_STYLE_MAC)
qtbase/src/widgets/widgets/qcombobox.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qdatetimeedit.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qdialogbuttonbox.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qdockarealayout.cpp:#ifdef Q_WS_MAC // drawer support
qtbase/src/widgets/widgets/qdockarealayout.cpp:#ifdef Q_WS_MAC // drawer support
qtbase/src/widgets/widgets/qdockarealayout.cpp:#ifndef Q_WS_MAC
qtbase/src/widgets/widgets/qdockarealayout.cpp:#ifndef Q_WS_MAC
qtbase/src/widgets/widgets/qdockwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qdockwidget.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qlineedit.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qlineedit.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qlineedit.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qlineedit.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qmainwindow.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qmainwindow.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qmainwindow.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qmainwindow.cpp:#ifdef Q_WS_MAC     //drawer support
qtbase/src/widgets/widgets/qmainwindow.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qmainwindow.cpp:#endif // Q_WS_MAC
qtbase/src/widgets/widgets/qmainwindow.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qmainwindow.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qmainwindowlayout.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qmainwindowlayout.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qmainwindowlayout.cpp:#endif // Q_WS_MAC
qtbase/src/widgets/widgets/qmainwindowlayout.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qmainwindowlayout.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qmainwindowlayout.cpp:#endif // Q_WS_MAC
qtbase/src/widgets/widgets/qmainwindowlayout.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qmainwindowlayout.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qmainwindowlayout.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qmainwindowlayout.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qmainwindowlayout.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qmainwindowlayout.cpp:#ifndef Q_WS_MAC
qtbase/src/widgets/widgets/qmdiarea.cpp:#if defined(Q_WS_MAC) && !defined(QT_NO_STYLE_MAC)
qtbase/src/widgets/widgets/qmdiarea.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qmdiarea.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qpushbutton.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qpushbutton.cpp:#endif // Q_WS_MAC
qtbase/src/widgets/widgets/qpushbutton.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qpushbutton.cpp:#endif // Q_WS_MAC
qtbase/src/widgets/widgets/qrubberband.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qrubberband.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qsizegrip.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qsizegrip.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qsizegrip.cpp:#ifndef Q_WS_MAC
qtbase/src/widgets/widgets/qsizegrip.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qsizegrip.cpp:#if !defined(QT_NO_CURSOR) && !defined(Q_WS_MAC)
qtbase/src/widgets/widgets/qsizegrip.cpp:#if !defined(QT_NO_CURSOR) && !defined(Q_WS_MAC)
qtbase/src/widgets/widgets/qsizegrip.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qsizegrip.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qsizegrip.cpp:#ifndef Q_WS_MAC
qtbase/src/widgets/widgets/qstatusbar.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qstatusbar.cpp:#ifndef Q_WS_MAC
qtbase/src/widgets/widgets/qtabbar.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qtabbar.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qtabbar.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qtabbar.cpp:#ifdef Q_WS_MAC
qtbase/src/widgets/widgets/qtoolbar.cpp:#if defined(Q_WS_X11) || defined(Q_WS_MAC)
qtbase/src/widgets/widgets/qwidgetlinecontrol.cpp:#if defined(Q_WS_MAC)
qtquick1/src/declarative/graphicsitems/qdeclarativepainteditem.cpp:#ifdef Q_WS_MAC
qtquick1/src/declarative/graphicsitems/qdeclarativepainteditem.cpp:#ifdef Q_WS_MAC
qtquick1/src/declarative/graphicsitems/qdeclarativepainteditem.cpp:#ifdef Q_WS_MAC
qtquick1/src/declarative/graphicsitems/qdeclarativepainteditem.cpp:#ifdef Q_WS_MAC
qtquick1/src/declarative/graphicsitems/qdeclarativetext.cpp:#ifdef Q_WS_MAC
qtquick1/src/declarative/graphicsitems/qdeclarativetext.cpp:#ifdef Q_WS_MAC
qtquick1/src/declarative/graphicsitems/qdeclarativetext.cpp:#ifdef Q_WS_MAC
qtquick1/src/declarative/graphicsitems/qdeclarativetext.cpp:#ifdef Q_WS_MAC
qtquick1/tests/auto/declarative/qdeclarativeflickable/tst_qdeclarativeflickable.cpp:#ifdef Q_WS_MAC
qtquick1/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp:#if !defined(Q_WS_MAC)
qtquick1/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp:#ifdef Q_WS_MAC
qtquick1/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp:#ifdef Q_WS_MAC
qtquick1/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp:#if !defined(Q_WS_MAC)
qtquick1/tools/qml/qdeclarativetester.cpp:#ifdef Q_WS_MAC
qtquick1/tools/qml/qdeclarativetester.cpp:#ifdef Q_WS_MAC
qtquick1/tools/qml/qmlruntime.cpp:#ifdef Q_WS_MAC
qtscript/src/scripttools/debugging/qscriptdebuggerlocalswidget.cpp:#ifdef Q_WS_MAC
qttools/tests/manual/uiloader/uiloader/tst_uiloader.cpp:#ifdef Q_WS_MAC
qtwebkit/Source/WebCore/page/qt/EventHandlerQt.cpp:#if defined(Q_WS_MAC)
qtwebkit/Source/WebCore/platform/qt/RenderThemeQStyle.cpp:#ifdef Q_WS_MAC
qtwebkit/Source/WebCore/platform/qt/RenderThemeQStyle.cpp:#ifdef Q_WS_MAC
qtwebkit/Source/WebCore/platform/qt/RenderThemeQStyle.cpp:#ifdef Q_WS_MAC // Use fixed font size and family on Mac (like Safari does)
qtwebkit/Source/WebKit/qt/WebCoreSupport/ChromeClientQt.cpp:#if defined(Q_WS_MAC)
qtwebkit-examples/examples/webkitwidgets/scroller/plot/main.cpp:#if defined(Q_WS_MAC)
qtwebkit-examples/examples/webkitwidgets/scroller/plot/main.cpp:#if defined(Q_WS_MAC)
qtwebkit-examples/examples/webkitwidgets/scroller/wheel/main.cpp:#ifdef Q_WS_MAC
---



More information about the kde-mac mailing list