Changeset 94067 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Mar 2, 2022 9:04:24 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r94064 r94067 115 115 VirtualBox_DEFS.darwin += VBOX_WITH_TRANSLUCENT_SEAMLESS # VBOX_WITH_MASKED_SEAMLESS 116 116 VirtualBox_DEFS.win += VBOX_WITH_MASKED_SEAMLESS # VBOX_WITH_TRANSLUCENT_SEAMLESS 117 VirtualBox_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS 117 ifn1of ($(KBUILD_TARGET_ARCH), arm64) # qt6: The UICocoaSpecialControls needs restructuring because QMacCocoaViewContainer is gone. Too lazy for now. 118 VirtualBox_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS 119 endif 118 120 VirtualBox_DEFS.win += UNICODE QT_DLL 119 121 VirtualBox_DEFS += \ … … 175 177 VirtualBoxVM_DEFS.darwin += VBOX_WITH_TRANSLUCENT_SEAMLESS # VBOX_WITH_MASKED_SEAMLESS 176 178 VirtualBoxVM_DEFS.win += VBOX_WITH_MASKED_SEAMLESS # VBOX_WITH_TRANSLUCENT_SEAMLESS 177 VirtualBoxVM_DEFS.darwin += \ 178 VBOX_DARWIN_USE_NATIVE_CONTROLS \ 179 $(if $(VBOX_WITH_VMNET),VBOX_WITH_VMNET) 179 ifdef VBOX_WITH_VMNET 180 VirtualBoxVM_DEFS.darwin += VBOX_WITH_VMNET 181 endif 182 ifn1of ($(KBUILD_TARGET_ARCH), arm64) # qt6: The UICocoaSpecialControls needs restructuring because QMacCocoaViewContainer is gone. Too lazy for now. 183 VirtualBoxVM_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS 184 endif 180 185 VirtualBoxVM_DEFS.win += UNICODE QT_DLL 181 186 VirtualBoxVM_DEFS += \ … … 230 235 UICommon_DEFS.win = VBOX_WS_WIN 231 236 UICommon_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT 232 UICommon_DEFS.darwin += \ 233 VBOX_DARWIN_USE_NATIVE_CONTROLS \ 234 $(if $(VBOX_WITH_VMNET),VBOX_WITH_VMNET) 237 ifdef VBOX_WITH_VMNET 238 UICommon_DEFS.darwin += VBOX_WITH_VMNET 239 endif 240 ifn1of ($(KBUILD_TARGET_ARCH), arm64) # qt6: The UICocoaSpecialControls needs restructuring because QMacCocoaViewContainer is gone. Too lazy for now. 241 UICommon_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS 242 endif 235 243 #UICommon_DEFS.win += UNICODE QT_DLL 236 244 UICommon_DEFS += \ … … 1583 1591 VirtualBox_QT_MODULES.solaris += X11Extras 1584 1592 VirtualBox_QT_MODULES.freebsd += X11Extras 1585 endif 1586 VirtualBox_QT_MODULES.darwin += MacExtras 1593 VirtualBox_QT_MODULES.darwin += MacExtras 1594 endif 1587 1595 VirtualBox_QT_MODULES.win += WinExtras 1588 1596 ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER … … 1604 1612 VirtualBoxVM_QT_MODULES.solaris += X11Extras 1605 1613 VirtualBoxVM_QT_MODULES.freebsd += X11Extras 1606 endif 1607 VirtualBoxVM_QT_MODULES.darwin += MacExtras 1614 VirtualBoxVM_QT_MODULES.darwin += MacExtras 1615 endif 1608 1616 VirtualBoxVM_QT_MODULES.win += WinExtras 1609 1617 ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER … … 1636 1644 UICommon_QT_MODULES.freebsd += DBus 1637 1645 UICommon_QT_MODULES.freebsd += Xml 1638 UICommon_QT_MODULES.darwin += MacExtras 1646 ifndef VBOX_WITH_QT6 1647 UICommon_QT_MODULES.darwin += MacExtras 1648 endif 1639 1649 UICommon_QT_MODULES.win += WinExtras 1640 1650 … … 1961 1971 tstDarwinKeyboard_SOURCES = \ 1962 1972 src/platform/darwin/tstDarwinKeyboard.cpp \ 1963 src/platform/darwin/DarwinKeyboard.cpp 1964 tstDarwinKeyboard_SOURCES.amd64 = \ 1973 src/platform/darwin/DarwinKeyboard.cpp \ 1965 1974 src/platform/darwin/CocoaEventHelper.mm 1966 1975 tstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon -framework AppKit -
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/UICocoaSpecialControls.h
r93115 r94067 21 21 # pragma once 22 22 #endif 23 #ifdef VBOX_DARWIN_USE_NATIVE_CONTROLS 23 24 24 25 /* Qt includes: */ 25 #include <QMacCocoaViewContainer>26 26 #include <QWidget> 27 #ifndef VBOX_IS_QT6_OR_LATER 28 # include <QMacCocoaViewContainer> 29 #endif 27 30 28 31 /* GUI includes: */ … … 35 38 /** QMacCocoaViewContainer extension, 36 39 * used as cocoa button container. */ 37 class SHARED_LIBRARY_STUFF UICocoaButton : public QMacCocoaViewContainer 40 class SHARED_LIBRARY_STUFF UICocoaButton 41 #ifdef VBOX_IS_QT6_OR_LATER 42 : public QWidget 43 #else 44 : public QMacCocoaViewContainer 45 #endif 38 46 { 39 47 Q_OBJECT … … 77 85 }; 78 86 87 #endif /* VBOX_DARWIN_USE_NATIVE_CONTROLS */ 79 88 #endif /* !FEQT_INCLUDED_SRC_platform_darwin_UICocoaSpecialControls_h */ 80 89 -
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/UICocoaSpecialControls.mm
r93115 r94067 15 15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 16 16 */ 17 18 #ifdef VBOX_DARWIN_USE_NATIVE_CONTROLS 17 19 18 20 /* Qt includes: */ … … 164 166 } 165 167 168 #endif /* VBOX_DARWIN_USE_NATIVE_CONTROLS */ 169
Note:
See TracChangeset
for help on using the changeset viewer.