22 lines
488 B
C++
22 lines
488 B
C++
#ifndef MONITORTOOLBOX_H
|
|
#define MONITORTOOLBOX_H
|
|
|
|
#include <QScrollArea>
|
|
|
|
class QVBoxLayout;
|
|
class MonitorToolBox : public QScrollArea
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MonitorToolBox(QWidget *parent = nullptr);
|
|
~MonitorToolBox();
|
|
void addWidget(const QString &title, QWidget *widget);
|
|
void removeWidget(const QString &title);
|
|
private:
|
|
QWidget* _container;
|
|
QVBoxLayout *m_pContentVBoxLayout;
|
|
QMap<QString,QWidget*> m_mapWidget;
|
|
};
|
|
#endif // MONITORTOOLBOX_H
|