24 lines
447 B
C++
24 lines
447 B
C++
#ifndef EDOUBLESPINBOX_H
|
|
#define EDOUBLESPINBOX_H
|
|
|
|
#include <QDoubleSpinBox>
|
|
|
|
class QWidget;
|
|
class QWheelEvent;
|
|
namespace pst
|
|
{
|
|
/// @brief 自定义浮点数输入框
|
|
class EDoubleSpinBox : public QDoubleSpinBox
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit EDoubleSpinBox(QWidget* parent = nullptr);
|
|
private:
|
|
/// @brief 重写鼠标滚动事件
|
|
void wheelEvent(QWheelEvent* event) override;
|
|
};
|
|
}
|
|
|
|
|
|
#endif
|