comac_desk_app/PostProcessing/EDoubleSpinBox.h

24 lines
447 B
C
Raw Permalink Normal View History

2024-11-21 11:50:43 +08:00
#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