39 lines
599 B
C
39 lines
599 B
C
|
#ifndef FESPARAMBTN_H
|
||
|
#define FESPARAMBTN_H
|
||
|
|
||
|
#include <QWidget>
|
||
|
|
||
|
namespace Ui {
|
||
|
class FesParamBtn;
|
||
|
}
|
||
|
|
||
|
class FesParamBtn : public QWidget
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
explicit FesParamBtn(QWidget *parent = nullptr);
|
||
|
~FesParamBtn();
|
||
|
|
||
|
void initButton(QString title,QString unit);
|
||
|
|
||
|
void setTitle(QString title);
|
||
|
|
||
|
void setData(int data);
|
||
|
|
||
|
int getValue();
|
||
|
|
||
|
signals:
|
||
|
void fesButtonClicked();
|
||
|
protected:
|
||
|
virtual void mousePressEvent(QMouseEvent *event);
|
||
|
|
||
|
virtual void changeEvent(QEvent* event);
|
||
|
private:
|
||
|
Ui::FesParamBtn *ui;
|
||
|
|
||
|
int m_value;
|
||
|
};
|
||
|
|
||
|
#endif // FESPARAMBTN_H
|