DiagramDesigner/include/toolBox.h

21 lines
413 B
C
Raw Normal View History

2024-12-03 20:07:25 +08:00
#ifndef TOOLBOX_H
#define TOOLBOX_H
#include <QWidget>
class QVBoxLayout;
class ToolBox : public QWidget
{
Q_OBJECT
public:
explicit ToolBox(QWidget *parent = nullptr);
~ToolBox();
void addWidget(const QString &title, QWidget *widget);
void removeWidget(const QString &title);
private:
QVBoxLayout *m_pContentVBoxLayout;
QMap<QString,QWidget*> m_mapWidget;
};
#endif // TOOLBOX_H