- Timestamp:
- Mar 2, 2022 3:49:12 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r94002 r94064 101 101 VirtualBox_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) 102 102 VirtualBox_DEFS = 103 ifdef VBOX_WITH_QT6 # moc is too stupid to parse #if QT_VERSION > xxx, '#ifdef VBOX_IS_QT6_OR_LATER' works though (no spaces). 104 VirtualBox_DEFS += VBOX_IS_QT6_OR_LATER 105 endif 103 106 VirtualBox_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT 104 107 VirtualBox_DEFS.linux = VBOX_WS_X11 QT_NO_DEPRECATED_WARNINGS … … 157 160 VirtualBoxVM_DEPS = $(UICommon_0_OUTDIR)/include/COMWrappers 158 161 VirtualBoxVM_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) 159 VirtualBoxVM_DEFS += VBOX_RUNTIME_UI 162 VirtualBoxVM_DEFS = VBOX_RUNTIME_UI 163 ifdef VBOX_WITH_QT6 # moc is too stupid to parse #if QT_VERSION > xxx, '#ifdef VBOX_IS_QT6_OR_LATER' works though (no spaces). 164 VirtualBoxVM_DEFS += VBOX_IS_QT6_OR_LATER 165 endif 160 166 VirtualBoxVM_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT 161 167 VirtualBoxVM_DEFS.linux = VBOX_WS_X11 QT_NO_DEPRECATED_WARNINGS … … 214 220 UICommon_TEMPLATE = VBOXQTGUI 215 221 UICommon_NAME = UICommon 216 UICommon_DEFS = 217 UICommon_DEFS += VBOX_GUI_LIBRARY 222 UICommon_DEFS = VBOX_GUI_LIBRARY 223 ifdef VBOX_WITH_QT6 # moc is too stupid to parse #if QT_VERSION > xxx, '#ifdef VBOX_IS_QT6_OR_LATER' works though (no spaces). 224 UICommon_DEFS += VBOX_IS_QT6_OR_LATER 225 endif 218 226 UICommon_DEFS.darwin = VBOX_WS_MAC 219 227 UICommon_DEFS.freebsd = VBOX_WS_X11 -
trunk/src/VBox/Frontends/VirtualBox/src/activity/UIMonitorCommon.h
r93984 r94064 27 27 UIDebuggerMetricData() 28 28 : m_counter(0){} 29 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)29 #ifdef VBOX_IS_QT6_OR_LATER 30 30 UIDebuggerMetricData(const QStringView &strName, quint64 counter) 31 31 #else -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIComboBox.cpp
r94042 r94064 398 398 connect(m_pComboBox, static_cast<void(QComboBox::*)(int)>(&QComboBox::activated), 399 399 this, static_cast<void(QIComboBox::*)(int)>(&QIComboBox::activated)); 400 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)/** @todo qt6: textActivated was added in 5.14 actually */400 #ifdef VBOX_IS_QT6_OR_LATER /** @todo qt6: textActivated was added in 5.14 actually */ 401 401 connect(m_pComboBox, static_cast<void(QComboBox::*)(const QString &)>(&QComboBox::textActivated), 402 402 this, static_cast<void(QIComboBox::*)(const QString &)>(&QIComboBox::textActivated)); … … 407 407 connect(m_pComboBox, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged), 408 408 this, static_cast<void(QIComboBox::*)(int)>(&QIComboBox::currentIndexChanged)); 409 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)409 #ifndef VBOX_IS_QT6_OR_LATER 410 410 connect(m_pComboBox, static_cast<void(QComboBox::*)(const QString &)>(&QComboBox::currentIndexChanged), 411 411 this, static_cast<void(QIComboBox::*)(const QString &)>(&QIComboBox::currentIndexChanged)); … … 413 413 connect(m_pComboBox, &QComboBox::currentTextChanged, this, &QIComboBox::currentTextChanged); 414 414 connect(m_pComboBox, &QComboBox::editTextChanged, this, &QIComboBox::editTextChanged); 415 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)/** @todo qt6: textHighlighted was added in 5.14 actually */415 #ifdef VBOX_IS_QT6_OR_LATER /** @todo qt6: textHighlighted was added in 5.14 actually */ 416 416 connect(m_pComboBox, static_cast<void(QComboBox::*)(const QString &)>(&QComboBox::textHighlighted), 417 417 this, static_cast<void(QIComboBox::*)(const QString &)>(&QIComboBox::textHighlighted)); -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIComboBox.h
r94042 r94064 43 43 void activated(int iIndex); 44 44 /** Notifies listeners about user chooses an item with @a strText in the combo-box. */ 45 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)/** @todo qt6: textHighlighted was added in 5.14 actually */45 #ifdef VBOX_IS_QT6_OR_LATER /** @todo qt6: textHighlighted was added in 5.14 actually */ 46 46 void textActivated(const QString &strText); 47 47 #else … … 51 51 /** Notifies listeners about current item changed to item with @a iIndex. */ 52 52 void currentIndexChanged(int iIndex); 53 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)53 #ifndef VBOX_IS_QT6_OR_LATER 54 54 /** Notifies listeners about current item changed to item with @a strText. */ 55 55 void currentIndexChanged(const QString &strText); … … 64 64 void highlighted(int iIndex); 65 65 /** Notifies listeners about user highlighted an item with @a strText in the popup list-view. */ 66 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)/** @todo qt6: textHighlighted was added in 5.14 actually */66 #ifdef VBOX_IS_QT6_OR_LATER /** @todo qt6: textHighlighted was added in 5.14 actually */ 67 67 void textHighlighted(const QString &strText); 68 68 #else -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/graphics/QIGraphicsView.cpp
r94025 r94064 47 47 AssertPtrReturn(pTouchEvent, QGraphicsView::event(pEvent)); 48 48 /* For touch-screen event we have something special: */ 49 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)49 #ifdef VBOX_IS_QT6_OR_LATER 50 50 if (pTouchEvent->device()->type() == QInputDevice::DeviceType::TouchScreen) 51 51 #else … … 68 68 AssertPtrReturn(pTouchEvent, QGraphicsView::event(pEvent)); 69 69 /* For touch-screen event we have something special: */ 70 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)70 #ifdef VBOX_IS_QT6_OR_LATER 71 71 if (pTouchEvent->device()->type() == QInputDevice::DeviceType::TouchScreen) 72 72 #else … … 95 95 AssertPtrReturn(pTouchEvent, QGraphicsView::event(pEvent)); 96 96 /* For touch-screen event we have something special: */ 97 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)97 #ifdef VBOX_IS_QT6_OR_LATER 98 98 if (pTouchEvent->device()->type() == QInputDevice::DeviceType::TouchScreen) 99 99 #else -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r93998 r94064 1288 1288 1289 1289 /* Get the name of the current element: */ 1290 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)1290 #ifdef VBOX_IS_QT6_OR_LATER 1291 1291 const QStringView strElementName = stream.name(); 1292 1292 #else -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp
r94019 r94064 222 222 { 223 223 /* Make sure QApplication cleanup us on exit: */ 224 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)224 #ifndef VBOX_IS_QT6_OR_LATER 225 225 qApp->setFallbackSessionManagementEnabled(false); 226 226 #endif -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDesktopWidgetWatchdog.cpp
r94026 r94064 18 18 /* Qt includes: */ 19 19 #include <QApplication> 20 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)20 #ifndef VBOX_IS_QT6_OR_LATER 21 21 # include <QDesktopWidget> 22 22 #endif … … 287 287 int UIDesktopWidgetWatchdog::overallDesktopWidth() const 288 288 { 289 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)289 #ifdef VBOX_IS_QT6_OR_LATER 290 290 /** @todo bird: Not sure if this is entirely correct. */ 291 291 return QGuiApplication::primaryScreen()->geometry().width(); … … 298 298 int UIDesktopWidgetWatchdog::overallDesktopHeight() const 299 299 { 300 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)300 #ifdef VBOX_IS_QT6_OR_LATER 301 301 /** @todo bird: Not sure if this is entirely correct. */ 302 302 return QGuiApplication::primaryScreen()->geometry().height(); … … 309 309 int UIDesktopWidgetWatchdog::screenCount() const 310 310 { 311 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)311 #ifdef VBOX_IS_QT6_OR_LATER 312 312 return QGuiApplication::screens().size(); 313 313 #else … … 317 317 } 318 318 319 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)319 #ifdef VBOX_IS_QT6_OR_LATER 320 320 321 321 /** Helper for generating qt5 screen indexes as best as we can. */ … … 352 352 } 353 353 354 #endif 354 #endif /* VBOX_IS_QT6_OR_LATER */ 355 355 356 356 int UIDesktopWidgetWatchdog::primaryScreen() const 357 357 { 358 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)358 #ifdef VBOX_IS_QT6_OR_LATER 359 359 return screenToIndex(QGuiApplication::primaryScreen()); 360 360 #else … … 366 366 int UIDesktopWidgetWatchdog::screenNumber(const QWidget *pWidget) const 367 367 { 368 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)368 #ifdef VBOX_IS_QT6_OR_LATER 369 369 if (pWidget) 370 370 return screenToIndex(pWidget->screen()); … … 378 378 int UIDesktopWidgetWatchdog::screenNumber(const QPoint &point) const 379 379 { 380 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)380 #ifdef VBOX_IS_QT6_OR_LATER 381 381 return screenToIndex(QGuiApplication::screenAt(point)); 382 382 #else … … 388 388 const QRect UIDesktopWidgetWatchdog::screenGeometry(int iHostScreenIndex /* = -1 */) const 389 389 { 390 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)390 #ifdef VBOX_IS_QT6_OR_LATER 391 391 return indexToScreen(iHostScreenIndex)->geometry(); 392 392 #else … … 415 415 const QRect UIDesktopWidgetWatchdog::availableGeometry(int iHostScreenIndex /* = -1 */) const 416 416 { 417 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)417 #ifdef VBOX_IS_QT6_OR_LATER 418 418 /** @todo needs X11 work, see 5.x version of code! */ 419 419 return indexToScreen(iHostScreenIndex)->availableGeometry(); … … 446 446 const QRect UIDesktopWidgetWatchdog::availableGeometry(const QWidget *pWidget) const 447 447 { 448 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)448 #ifdef VBOX_IS_QT6_OR_LATER 449 449 if (pWidget && pWidget->screen()) 450 450 return pWidget->screen()->availableGeometry(); … … 458 458 const QRect UIDesktopWidgetWatchdog::availableGeometry(const QPoint &point) const 459 459 { 460 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)460 #ifdef VBOX_IS_QT6_OR_LATER 461 461 QScreen *pScreen = QGuiApplication::screenAt(point); 462 462 if (pScreen) -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerTable.cpp
r94042 r94064 291 291 if (m_pHistoryComboBox) 292 292 { 293 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)293 #ifdef VBOX_IS_QT6_OR_LATER 294 294 disconnect(m_pHistoryComboBox, static_cast<void(QComboBox::*)(const QString&)>(&QComboBox::currentTextChanged), 295 295 this, &UIFileManagerNavigationWidget::sltHandlePathChange); … … 338 338 connect(m_pHistoryComboBox, &UIFileManagerHistoryComboBox::sigHidePopup, 339 339 this, &UIFileManagerNavigationWidget::sltHandleHidePopup); 340 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)340 #ifdef VBOX_IS_QT6_OR_LATER 341 341 connect(m_pHistoryComboBox, static_cast<void(QComboBox::*)(const QString&)>(&QComboBox::currentTextChanged), 342 342 this, &UIFileManagerNavigationWidget::sltHandlePathChange); -
trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpBrowserWidget.cpp
r94032 r94064 191 191 void sigOpenLinkInNewTab(const QUrl &url, bool fBackground); 192 192 void sigAddBookmark(const QUrl &url, const QString &strTitle); 193 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)193 #ifdef VBOX_IS_QT6_OR_LATER 194 194 void sigLinkHighlighted(const QUrl &url); 195 195 #else … … 275 275 /** list.first is tab title and list.second is tab's index. */ 276 276 void sigTabsListChanged(const QStringList &titleList); 277 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)277 #ifdef VBOX_IS_QT6_OR_LATER 278 278 void sigLinkHighlighted(const QUrl &url); 279 279 #else … … 716 716 connect(m_pContentViewer, &UIHelpViewer::sigAddBookmark, 717 717 this, &UIHelpBrowserTab::sltAddBookmarkAction); 718 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)718 #ifdef VBOX_IS_QT6_OR_LATER 719 719 connect(m_pContentViewer, static_cast<void(UIHelpViewer::*)(const QUrl&)>(&UIHelpViewer::highlighted), 720 720 this, &UIHelpBrowserTab::sigLinkHighlighted); … … 1948 1948 } 1949 1949 1950 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)1950 #ifdef VBOX_IS_QT6_OR_LATER 1951 1951 void UIHelpBrowserWidget::sltLinkHighlighted(const QUrl &url) 1952 1952 { -
trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpBrowserWidget.h
r94032 r94064 110 110 void sltFindPreviousInPage(); 111 111 void sltHistoryChanged(bool fBackwardAvailable, bool fForwardAvailable); 112 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)112 #ifdef VBOX_IS_QT6_OR_LATER 113 113 void sltLinkHighlighted(const QUrl &url); 114 114 #else -
trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpViewer.cpp
r94032 r94064 412 412 } 413 413 414 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)414 #ifdef VBOX_IS_QT6_OR_LATER 415 415 void UIHelpViewer::doSetSource(const QUrl &url, QTextDocument::ResourceType type) 416 416 #else … … 419 419 { 420 420 clearOverlay(); 421 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)421 #ifdef VBOX_IS_QT6_OR_LATER 422 422 QTextBrowser::doSetSource(url, type); 423 423 #else -
trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpViewer.h
r94032 r94064 71 71 virtual QVariant loadResource(int type, const QUrl &name) RT_OVERRIDE; 72 72 void emitHistoryChangedSignal(); 73 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)/* must override doSetSource in 6.0 */73 #ifndef VBOX_IS_QT6_OR_LATER /* must override doSetSource in 6.0 */ 74 74 virtual void setSource(const QUrl &url) RT_OVERRIDE; 75 75 #endif … … 102 102 virtual bool eventFilter(QObject *pObject, QEvent *pEvent) RT_OVERRIDE; 103 103 virtual void keyPressEvent(QKeyEvent *pEvent) RT_OVERRIDE; 104 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)104 #ifdef VBOX_IS_QT6_OR_LATER 105 105 virtual void doSetSource(const QUrl &url, QTextDocument::ResourceType type = QTextDocument::UnknownResource) RT_OVERRIDE; 106 106 #endif -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UICloudEntityKey.h
r94046 r94064 58 58 }; 59 59 60 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)60 #ifdef VBOX_IS_QT6_OR_LATER 61 61 inline size_t qHash(const UICloudEntityKey &key, size_t uSeed) 62 62 #else -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp
r94029 r94064 429 429 430 430 /* If we have at least one of those items currently selected: */ 431 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)431 #ifdef VBOX_IS_QT6_OR_LATER 432 432 { 433 433 QList<UIChooserItem *> selectedItemsList = selectedItems(); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserNodeMachine.cpp
r93996 r94064 18 18 /* Qt includes: */ 19 19 #include <qglobal.h> 20 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)20 #ifdef VBOX_IS_QT6_OR_LATER 21 21 # include <QRegularExpression> 22 22 #else … … 231 231 else 232 232 { 233 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)/* fromWildcard is 6.0+ */233 #ifdef VBOX_IS_QT6_OR_LATER /* fromWildcard is 6.0+ */ 234 234 QRegularExpression searchRegEx = QRegularExpression::fromWildcard(strSearchTerm, Qt::CaseInsensitive); 235 235 #else -
trunk/src/VBox/Frontends/VirtualBox/src/platform/x11/UIDesktopServices_x11.cpp
r94036 r94064 35 35 const QString strVBox = QDir::toNativeSeparators(QCoreApplication::applicationDirPath() + "/" + VBOX_GUI_VMRUNNER_IMAGE); 36 36 QTextStream out(&link); 37 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)/* defaults to UTF-8 in qt6 */37 #ifndef VBOX_IS_QT6_OR_LATER /* defaults to UTF-8 in qt6 */ 38 38 out.setCodec("UTF-8"); 39 39 #endif -
trunk/src/VBox/Frontends/VirtualBox/src/platform/x11/VBoxUtils-x11.cpp
r94013 r94064 24 24 #include <QtXml/QDomElement> 25 25 #include <QWidget> 26 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)26 #ifdef VBOX_IS_QT6_OR_LATER 27 27 # include <QGuiApplication> 28 28 #else … … 658 658 Display *NativeWindowSubsystem::X11GetDisplay(void) 659 659 { 660 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)660 #ifdef VBOX_IS_QT6_OR_LATER 661 661 Display *pDisplay = nullptr; 662 662 if (qApp) … … 675 675 xcb_connection_t *NativeWindowSubsystem::X11GetConnection(void) 676 676 { 677 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)677 #ifdef VBOX_IS_QT6_OR_LATER 678 678 if (qApp) 679 679 { … … 690 690 uint32_t NativeWindowSubsystem::X11GetAppRootWindow(void) 691 691 { 692 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)692 #ifdef VBOX_IS_QT6_OR_LATER 693 693 Window idWindow = 0; 694 694 Display *pDisplay = NativeWindowSubsystem::X11GetDisplay(); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp
r94035 r94064 1743 1743 { 1744 1744 /* Send prepared scan-codes to the guest: */ 1745 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)1745 #ifdef VBOX_IS_QT6_OR_LATER 1746 1746 QVector<LONG> scancodes; 1747 1747 for (uint i = 0; i < uCodesCount; i++) … … 1774 1774 Q_UNUSED(iHotKey); 1775 1775 if (pHotKey && pHotKey[0] && !pHotKey[1]) 1776 # if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)1776 # ifdef VBOX_IS_QT6_OR_LATER 1777 1777 fWasProcessed = actionPool()->processHotKey(QKeySequence(QChar(pHotKey[0]).toUpper().unicode())); 1778 1778 # else … … 1812 1812 { 1813 1813 QChar qtSymbol = QString::fromLocal8Bit(&symbol, 1)[0]; 1814 # if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)1814 # ifdef VBOX_IS_QT6_OR_LATER 1815 1815 fWasProcessed = actionPool()->processHotKey(QKeySequence(qtSymbol.toUpper().unicode())); 1816 1816 # else -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r94034 r94064 103 103 104 104 /** Redirects all the native events to parent. */ 105 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)105 #ifdef VBOX_IS_QT6_OR_LATER 106 106 bool nativeEventFilter(const QByteArray &eventType, void *pMessage, qintptr * /* pResult */) 107 107 #else … … 806 806 updateMousePointerPixmapScaling(pixmapShape, uXHot, uYHot); 807 807 /// @todo updateMousePointerPixmapScaling(pixmapMask, uXHot, uYHot); 808 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)/** @todo qt6: this is probably inefficient */808 #ifdef VBOX_IS_QT6_OR_LATER /** @todo qt6: this is probably inefficient */ 809 809 m_cursor = QCursor(QBitmap(pixmapShape), QBitmap(pixmapMask), uXHot, uYHot); 810 810 #else -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp
r94024 r94064 758 758 * guest mouse device at all: */ 759 759 int iDelta = 0; 760 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)760 #ifdef VBOX_IS_QT6_OR_LATER 761 761 Qt::Orientation const enmOrientation = RT_ABS(pWheelEvent->pixelDelta().x()) 762 762 > RT_ABS(pWheelEvent->pixelDelta().y()) ? Qt::Horizontal : Qt::Vertical; … … 774 774 } 775 775 if (mouseEvent(pWheelEvent->type(), uScreenId, 776 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) /** @todo .... */776 #ifdef VBOX_IS_QT6_OR_LATER /** @todo qt6: ... */ 777 777 pWheelEvent->position().toPoint(), pWheelEvent->globalPosition().toPoint(), 778 778 #else … … 788 788 #endif /* !VBOX_WS_MAC */ 789 789 iDelta, 790 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)790 #ifdef VBOX_IS_QT6_OR_LATER 791 791 enmOrientation) 792 792 #else -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialog.cpp
r94022 r94064 747 747 fnt.setPointSize(11); 748 748 fnt.setBold(true); 749 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)749 #ifdef VBOX_IS_QT6_OR_LATER 750 750 fnt.setWeight(QFont::ExtraBold); 751 751 #else -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIHostComboEditor.cpp
r94033 r94064 83 83 84 84 /** Handles all native events. */ 85 # ifdef VBOX_IS_QT6_OR_LATER 86 virtual bool nativeEventFilter(const QByteArray &eventType, void *pMessage, qintptr *pResult) RT_OVERRIDE 87 # else 85 88 virtual bool nativeEventFilter(const QByteArray &eventType, void *pMessage, long *pResult) RT_OVERRIDE 89 # endif 86 90 { 87 91 /* Redirect event to parent: */ … … 620 624 } 621 625 622 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)626 #ifdef VBOX_IS_QT6_OR_LATER 623 627 bool UIHostComboEditorPrivate::nativeEvent(const QByteArray &eventType, void *pMessage, qintptr *pResult) 624 628 #else -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIHostComboEditor.h
r94033 r94064 191 191 192 192 /** Handles native events. */ 193 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)193 #ifdef VBOX_IS_QT6_OR_LATER 194 194 virtual bool nativeEvent(const QByteArray &eventType, void *pMessage, qintptr *pResult) RT_OVERRIDE; 195 195 #else -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UITabBar.cpp
r94000 r94064 114 114 virtual void mouseMoveEvent(QMouseEvent *pEvent) RT_OVERRIDE; 115 115 /** Handles mouse-enter @a pEvent. */ 116 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)116 #ifdef VBOX_IS_QT6_OR_LATER 117 117 virtual void enterEvent(QEnterEvent *pEvent) RT_OVERRIDE; 118 118 #else … … 579 579 } 580 580 581 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)581 #ifdef VBOX_IS_QT6_OR_LATER 582 582 void UITabBarItem::enterEvent(QEnterEvent *pEvent) 583 583 #else … … 603 603 if (!m_fHovered) 604 604 { 605 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)/** @todo qt6: Code duplication of enterEvent; split out in separate method (complete wast of time to cook up a QEnterEvent here). */605 #ifdef VBOX_IS_QT6_OR_LATER /** @todo qt6: Code duplication of enterEvent; split out in separate method (complete wast of time to cook up a QEnterEvent here). */ 606 606 # ifdef VBOX_WS_MAC 607 607 m_pLayoutStacked->setCurrentWidget(m_pButtonClose); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardDiskEditors.cpp
r94052 r94064 626 626 627 627 setMediumFormat(m_formatList[0].m_comFormat); 628 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)628 #ifdef VBOX_IS_QT6_OR_LATER 629 629 connect(m_pFormatButtonGroup, static_cast<void(QButtonGroup::*)(QAbstractButton *)>(&QButtonGroup::buttonClicked), 630 630 this, &UIDiskFormatsGroupBox::sigMediumFormatChanged);
Note:
See TracChangeset
for help on using the changeset viewer.