forked from qt-creator/qt-creator
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:
@@ -227,6 +227,7 @@ CMakeBuildSettingsWidget::CMakeBuildSettingsWidget(CMakeBuildConfiguration *bc)
|
|||||||
m_configurationStates = new QTabBar(this);
|
m_configurationStates = new QTabBar(this);
|
||||||
m_configurationStates->addTab(Tr::tr("Initial Configuration"));
|
m_configurationStates->addTab(Tr::tr("Initial Configuration"));
|
||||||
m_configurationStates->addTab(Tr::tr("Current Configuration"));
|
m_configurationStates->addTab(Tr::tr("Current Configuration"));
|
||||||
|
setWheelScrollingWithoutFocusBlocked(m_configurationStates);
|
||||||
connect(m_configurationStates, &QTabBar::currentChanged, this, [this](int index) {
|
connect(m_configurationStates, &QTabBar::currentChanged, this, [this](int index) {
|
||||||
updateConfigurationStateIndex(index);
|
updateConfigurationStateIndex(index);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user