summaryrefslogtreecommitdiff
path: root/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardDiskEditors.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardDiskEditors.cpp')
-rw-r--r--src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardDiskEditors.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardDiskEditors.cpp b/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardDiskEditors.cpp
index 8475998e7c7..bac29a98287 100644
--- a/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardDiskEditors.cpp
+++ b/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardDiskEditors.cpp
@@ -625,12 +625,18 @@ void UIDiskFormatsGroupBox::createFormatWidgets()
}
setMediumFormat(m_formatList[0].m_comFormat);
+#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
+ connect(m_pFormatButtonGroup, static_cast<void(QButtonGroup::*)(QAbstractButton *)>(&QButtonGroup::buttonClicked),
+ this, &UIDiskFormatsGroupBox::sigMediumFormatChanged);
+#else
connect(m_pFormatButtonGroup, static_cast<void(QButtonGroup::*)(int)>(&QButtonGroup::buttonClicked),
this, &UIDiskFormatsGroupBox::sigMediumFormatChanged);
+#endif
}
+
/*********************************************************************************************************************************
-* UIDiskFormatsGroupBox implementation. *
+* UIDiskFormatsGroupBox implementation. *
*********************************************************************************************************************************/
UIDiskFormatsComboBox::UIDiskFormatsComboBox(bool fExpertMode, KDeviceType enmDeviceType, QWidget *pParent /* = 0 */)