#ifndef SUMMARYWIDGET_H #define SUMMARYWIDGET_H #include class ModelSummary; class QLabel; class QSpinBox; class SummaryWidget : public QWidget { Q_OBJECT public: explicit SummaryWidget(std::shared_ptr modelSummary, QWidget* parent = nullptr); private slots: void onFinancialNeedChanged(int newFinancialNeed); private: std::shared_ptr m_modelSummary; // TODO read from settings (maybe via model/core; maybe set in constructor) const int m_financialNeed = 13942; QSpinBox* m_financialNeedBox = nullptr; QLabel* m_rowCountValueLabel; QLabel* m_nExpectedBiddingsValueLabel; void setupBindableProperties(); }; #endif // SUMMARYWIDGET_H