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.

38 lines
969 B
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/**********************************************************************
* @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