qt/LedOK/devicectrlpanel.h

35 lines
730 B
C
Raw Normal View History

2022-08-25 18:37:24 +08:00
#ifndef DEVICECTRLPANEL_H
#define DEVICECTRLPANEL_H
#include "globaldefine.h"
#include <QScrollArea>
#include <QPushButton>
#include <QToolButton>
#include <QTextEdit>
#include <QLabel>
class DevicePanel;
class DeviceCtrlPanel : public QWidget {
Q_OBJECT
public:
explicit DeviceCtrlPanel(DevicePanel *parent = nullptr);
QTextEdit *fdInfo;
protected:
2023-05-15 16:06:10 +08:00
void showEvent(QShowEvent *event) override;
void hideEvent(QHideEvent *event) override;
2022-08-25 18:37:24 +08:00
void changeEvent(QEvent *) override;
void transUi();
private:
DevicePanel *mDevWgt;
QButtonGroup *mBtnGrp;
QScrollArea *scrollArea;
QPushButton *btnClear;
QWidget *wgts[Setting_End]{};
int curIndex{-1};
};
#endif // DEVICECTRLPANEL_H