Migrated old visualization of the bidding round statuses with donut charts from the legacy BeetRound project.
This commit is contained in:
@ -10,6 +10,11 @@ ModelSummary::ModelSummary(std::shared_ptr<TableModel> model, QObject* parent)
|
||||
// TODO ? use existing model signals (dataChanged(role),...) instead of special signals
|
||||
connect(m_model.get(), &TableModel::nExpectedBiddingsChanged, this,
|
||||
&ModelSummary::nExpectedBiddingsChanged);
|
||||
connect(m_model.get(), &TableModel::nPlacedBiddingsChanged, this,
|
||||
&ModelSummary::nPlacedBiddingsChanged);
|
||||
connect(m_model.get(), &TableModel::biddingSumChanged, this, &ModelSummary::biddingSumChanged);
|
||||
connect(m_model.get(), &TableModel::biddingAverageChanged, this,
|
||||
&ModelSummary::biddingAverageChanged);
|
||||
}
|
||||
|
||||
ModelSummary::~ModelSummary() {}
|
||||
@ -26,7 +31,14 @@ QBindable<int> ModelSummary::bindableRowCount() {
|
||||
|
||||
int ModelSummary::nExpectedBiddings() const { return m_model->nExpectedBiddings(); }
|
||||
|
||||
QBindable<int> ModelSummary::bindableNExpectedBiddings() {
|
||||
m_nExpectedBiddings = m_model->nExpectedBiddings();
|
||||
return &m_nExpectedBiddings;
|
||||
}
|
||||
int ModelSummary::nPlacedBiddings1() const { return m_model->nPlacedBiddings1(); }
|
||||
int ModelSummary::nPlacedBiddings2() const { return m_model->nPlacedBiddings2(); }
|
||||
int ModelSummary::nPlacedBiddings3() const { return m_model->nPlacedBiddings3(); }
|
||||
|
||||
int ModelSummary::biddingSum1() const { return m_model->biddingSum1(); }
|
||||
int ModelSummary::biddingSum2() const { return m_model->biddingSum2(); }
|
||||
int ModelSummary::biddingSum3() const { return m_model->biddingSum3(); }
|
||||
|
||||
qreal ModelSummary::biddingAverage1() const { return m_model->biddingAverage1(); }
|
||||
qreal ModelSummary::biddingAverage2() const { return m_model->biddingAverage2(); }
|
||||
qreal ModelSummary::biddingAverage3() const { return m_model->biddingAverage3(); }
|
||||
|
||||
Reference in New Issue
Block a user