31 lines
604 B
C++
31 lines
604 B
C++
#ifndef MONITORTOOLPAGE_H
|
|
#define MONITORTOOLPAGE_H
|
|
|
|
#include <QWidget>
|
|
|
|
class QFormLayout;
|
|
class QLabel;
|
|
class QPushButton;
|
|
|
|
|
|
class MonitorToolPage : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit MonitorToolPage(QWidget *parent = nullptr);
|
|
~MonitorToolPage();
|
|
public slots:
|
|
void addWidget(const QString &title, QWidget *widget);
|
|
void expand();
|
|
void collapse();
|
|
private slots:
|
|
void onPushButtonFoldClicked();
|
|
private:
|
|
|
|
bool m_bIsExpanded;
|
|
QLabel *m_pLabel;
|
|
QPushButton *m_pPushButtonFold;
|
|
QWidget *m_pContent;
|
|
};
|
|
#endif // MONITORTOOLPAGE_HTOOLPAGE_H
|