You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
/**********************************************************************
|
|
|
|
|
* @file GUISpinBox.h
|
|
|
|
|
* @brief 封装SpinBox,解决滚轮问题
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-09-11
|
|
|
|
|
*********************************************************************/
|
|
|
|
|
#ifndef _GUISpinBox_H_
|
|
|
|
|
#define _GUISpinBox_H_
|
|
|
|
|
|
|
|
|
|
#include <QSpinBox>
|
|
|
|
|
#include "GUIWidgetAPI.h"
|
|
|
|
|
|
|
|
|
|
namespace GUI
|
|
|
|
|
{
|
|
|
|
|
class GUIWidgetAPI GUISpinBox : public QSpinBox
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT;
|
|
|
|
|
public:
|
|
|
|
|
/**
|
|
|
|
|
* @brief 构造函数
|
|
|
|
|
* @param[i] parent 父对象
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-09-11
|
|
|
|
|
*/
|
|
|
|
|
explicit GUISpinBox(QWidget* parent = nullptr);
|
|
|
|
|
/**
|
|
|
|
|
* @brief 析构函数
|
|
|
|
|
* @author BaGuijun (baguijun@163.com)
|
|
|
|
|
* @date 2024-09-11
|
|
|
|
|
*/
|
|
|
|
|
virtual ~GUISpinBox();
|
|
|
|
|
protected:
|
|
|
|
|
void wheelEvent(QWheelEvent *event) override;
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|