Files
BeetRound/UIs/BeetRoundWidgets/widgets/summarywidget.h

33 lines
707 B
C++

#ifndef SUMMARYWIDGET_H
#define SUMMARYWIDGET_H
#include <QWidget>
class ModelSummary;
class QLabel;
class QSpinBox;
class SummaryWidget : public QWidget {
Q_OBJECT
public:
explicit SummaryWidget(std::shared_ptr<ModelSummary> modelSummary, QWidget* parent = nullptr);
private slots:
void onFinancialNeedChanged(int newFinancialNeed);
private:
std::shared_ptr<ModelSummary> 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