43 lines
635 B
C++
43 lines
635 B
C++
#ifndef TOOLPAGE_H
|
|
#define TOOLPAGE_H
|
|
|
|
#include <QWidget>
|
|
#include "./UIHelper/commonhelper.h"
|
|
#include "./UIHelper/frameless_helper.h"
|
|
|
|
namespace Ui
|
|
{
|
|
class ToolPage;
|
|
}
|
|
|
|
class QFormLayout;
|
|
class QLabel;
|
|
class ToolPage : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ToolPage(QWidget* parent = nullptr);
|
|
~ToolPage();
|
|
|
|
void AddWidget(const QString& title, QWidget* widget);
|
|
|
|
private:
|
|
void expand();
|
|
void collapse();
|
|
|
|
private slots:
|
|
void onPushButtonFoldClicked();
|
|
|
|
private:
|
|
void LoadStyle();
|
|
|
|
private:
|
|
Ui::ToolPage* ui;
|
|
|
|
bool m_bIsExpanded;
|
|
QLabel* m_pLabel;
|
|
};
|
|
|
|
#endif // TOOLPAGE_H
|