DiagramDesigner/include/toolBox.h

21 lines
413 B
C++

#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