Added a ModelSummary class to make the overview over the model content accessible via QProperty system & a SummaryWidget to show this information. Only property rowCount as a proof of concept. Other properties will follow.
This commit is contained in:
21
UIs/BeetRoundWidgets/widgets/summarywidget.h
Normal file
21
UIs/BeetRoundWidgets/widgets/summarywidget.h
Normal file
@ -0,0 +1,21 @@
|
||||
#ifndef SUMMARYWIDGET_H
|
||||
#define SUMMARYWIDGET_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
class ModelSummary;
|
||||
class QLabel;
|
||||
|
||||
class SummaryWidget : public QWidget {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit SummaryWidget(std::shared_ptr<ModelSummary> modelSummary, QWidget* parent = nullptr);
|
||||
|
||||
private:
|
||||
std::shared_ptr<ModelSummary> m_modelSummary;
|
||||
|
||||
QLabel* m_rowCoundValueLabel;
|
||||
};
|
||||
|
||||
#endif // SUMMARYWIDGET_H
|
||||
Reference in New Issue
Block a user