VirtualBox

Ignore:
Timestamp:
Mar 1, 2022 3:01:06 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: qt6: The QButtonGroup::buttonClicked(int) signal was removed in qt6, leaving only the variant taking a QAbstractButton pointer (present in 5.0, possibly older). bugref:9898

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerFilterPanel.cpp

    r93998 r94045  
    413413}
    414414
    415 void UIVMLogViewerFilterPanel::sltOperatorButtonChanged(int buttonId)
    416 {
     415void UIVMLogViewerFilterPanel::sltOperatorButtonChanged(QAbstractButton *pButton)
     416{
     417    int buttonId = m_pButtonGroup->id(pButton);
    417418    if (buttonId < 0 || buttonId >= ButtonEnd)
    418419        return;
     
    553554{
    554555    connect(m_pAddFilterTermButton, &QIToolButton::clicked, this,  &UIVMLogViewerFilterPanel::sltAddFilterTerm);
    555     connect(m_pButtonGroup, static_cast<void (QButtonGroup::*)(int)>(&QButtonGroup::buttonClicked),
     556    connect(m_pButtonGroup, static_cast<void (QButtonGroup::*)(QAbstractButton *)>(&QButtonGroup::buttonClicked),
    556557            this, &UIVMLogViewerFilterPanel::sltOperatorButtonChanged);
    557558    connect(m_pFilterComboBox, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerFilterPanel.h

    r93990 r94045  
    2929
    3030/* Forward declarations: */
     31class QAbstractButton;
    3132class QButtonGroup;
    3233class QComboBox;
     
    7980    void sltClearFilterTerms();
    8081    /** Executes the necessary code to handle filter's boolean operator change ('And', 'Or'). */
    81     void sltOperatorButtonChanged(int buttonId);
     82    void sltOperatorButtonChanged(QAbstractButton *pButton);
    8283    void sltRemoveFilterTerm(const QString &termString);
    8384
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardDiskEditors.cpp

    r93115 r94045  
    626626
    627627    setMediumFormat(m_formatList[0].m_comFormat);
     628#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
     629    connect(m_pFormatButtonGroup, static_cast<void(QButtonGroup::*)(QAbstractButton *)>(&QButtonGroup::buttonClicked),
     630            this, &UIDiskFormatsGroupBox::sigMediumFormatChanged);
     631#else
    628632    connect(m_pFormatButtonGroup, static_cast<void(QButtonGroup::*)(int)>(&QButtonGroup::buttonClicked),
    629633            this, &UIDiskFormatsGroupBox::sigMediumFormatChanged);
    630 }
     634#endif
     635}
     636
    631637
    632638/*********************************************************************************************************************************
    633 *   UIDiskFormatsGroupBox implementation.                                                                                   *
     639*   UIDiskFormatsGroupBox implementation.                                                                                        *
    634640*********************************************************************************************************************************/
    635641
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