Changeset 94045 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Mar 1, 2022 3:01:06 PM (3 years ago)
- 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 413 413 } 414 414 415 void UIVMLogViewerFilterPanel::sltOperatorButtonChanged(int buttonId) 416 { 415 void UIVMLogViewerFilterPanel::sltOperatorButtonChanged(QAbstractButton *pButton) 416 { 417 int buttonId = m_pButtonGroup->id(pButton); 417 418 if (buttonId < 0 || buttonId >= ButtonEnd) 418 419 return; … … 553 554 { 554 555 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), 556 557 this, &UIVMLogViewerFilterPanel::sltOperatorButtonChanged); 557 558 connect(m_pFilterComboBox, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerFilterPanel.h
r93990 r94045 29 29 30 30 /* Forward declarations: */ 31 class QAbstractButton; 31 32 class QButtonGroup; 32 33 class QComboBox; … … 79 80 void sltClearFilterTerms(); 80 81 /** Executes the necessary code to handle filter's boolean operator change ('And', 'Or'). */ 81 void sltOperatorButtonChanged( int buttonId);82 void sltOperatorButtonChanged(QAbstractButton *pButton); 82 83 void sltRemoveFilterTerm(const QString &termString); 83 84 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardDiskEditors.cpp
r93115 r94045 626 626 627 627 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 628 632 connect(m_pFormatButtonGroup, static_cast<void(QButtonGroup::*)(int)>(&QButtonGroup::buttonClicked), 629 633 this, &UIDiskFormatsGroupBox::sigMediumFormatChanged); 630 } 634 #endif 635 } 636 631 637 632 638 /********************************************************************************************************************************* 633 * UIDiskFormatsGroupBox implementation. *639 * UIDiskFormatsGroupBox implementation. * 634 640 *********************************************************************************************************************************/ 635 641
Note:
See TracChangeset
for help on using the changeset viewer.