For the "ignore wheel" widgets, do not leave focus on mouse leave events. This causes unintended side effects such as not being able to type in edit boxes, and is very annoying.
20 lines
276 B
C++
20 lines
276 B
C++
#pragma once
|
|
|
|
#include <QComboBox>
|
|
#include <QInputEvent>
|
|
#include <QtCore/QObject>
|
|
|
|
|
|
class ComboBoxIgnoreScroll : public QComboBox {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
ComboBoxIgnoreScroll(QWidget *parent = nullptr);
|
|
|
|
protected:
|
|
|
|
virtual void wheelEvent(QWheelEvent *event) override;
|
|
};
|
|
|
|
|