forked from qt-creator/qt-creator
GuiUtils: Apply wheel blocker to more widgets
Attach it to configuration and aspect widgets. Change-Id: Ifd649f6dbf8bbb1ce1cf7251ac46b7cfac9798e3 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include <utils/environment.h>
|
||||
#include <utils/environmentdialog.h>
|
||||
#include <utils/guard.h>
|
||||
#include <utils/guiutils.h>
|
||||
#include <utils/layoutbuilder.h>
|
||||
#include <utils/macroexpander.h>
|
||||
#include <utils/pathchooser.h>
|
||||
@@ -215,6 +216,7 @@ public:
|
||||
auto cb = new QComboBox;
|
||||
cb->setSizePolicy(QSizePolicy::Ignored, cb->sizePolicy().verticalPolicy());
|
||||
cb->setToolTip(factory->description());
|
||||
setWheelScrollingWithoutFocusBlocked(cb);
|
||||
|
||||
m_languageComboboxMap.insert(l, cb);
|
||||
layout->addWidget(cb, row, 1);
|
||||
@@ -247,6 +249,7 @@ private:
|
||||
IDeviceConstPtr device = BuildDeviceKitAspect::device(kit());
|
||||
|
||||
const GuardLocker locker(m_ignoreChanges);
|
||||
// TODO: Get rid of keys, iterate directly on hash.
|
||||
const QList<Id> keys = m_languageComboboxMap.keys();
|
||||
for (const Id l : keys) {
|
||||
const Toolchains ltcList = ToolchainManager::toolchains(equal(&Toolchain::language, l));
|
||||
|
||||
Reference in New Issue
Block a user