CMakePM: Disable wheel events for QTabBar

Wheel events have been disabled for QComboBox and Q*SpinBox.
This change extends the same behavior to QTabBar.

Change-Id: I3495edd7418e3df84712c64ab4f8c51fb444c7f9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Tasuku Suzuki
2024-12-19 22:44:01 +09:00
parent d000537315
commit f72c94b748

View File

@@ -227,6 +227,7 @@ CMakeBuildSettingsWidget::CMakeBuildSettingsWidget(CMakeBuildConfiguration *bc)
m_configurationStates = new QTabBar(this);
m_configurationStates->addTab(Tr::tr("Initial Configuration"));
m_configurationStates->addTab(Tr::tr("Current Configuration"));
setWheelScrollingWithoutFocusBlocked(m_configurationStates);
connect(m_configurationStates, &QTabBar::currentChanged, this, [this](int index) {
updateConfigurationStateIndex(index);
});