Migrated old visualization of the bidding round statuses with donut charts from the legacy BeetRound project.
This commit is contained in:
@ -56,9 +56,28 @@ class TableModel : public QAbstractTableModel {
|
||||
const QList<ModelItemValues>& itemValuesList,
|
||||
const QModelIndex& parentIndex = QModelIndex());
|
||||
|
||||
/// property functions
|
||||
int nExpectedBiddings() const;
|
||||
int nPlacedBiddings1() const;
|
||||
int nPlacedBiddings2() const;
|
||||
int nPlacedBiddings3() const;
|
||||
|
||||
int biddingSum1() const;
|
||||
int biddingSum2() const;
|
||||
int biddingSum3() const;
|
||||
|
||||
qreal biddingAverage1() const;
|
||||
qreal biddingAverage2() const;
|
||||
qreal biddingAverage3() const;
|
||||
|
||||
signals:
|
||||
void rowCountChanged();
|
||||
|
||||
void nExpectedBiddingsChanged();
|
||||
void nPlacedBiddingsChanged(const int roundNumber);
|
||||
void biddingSumChanged(const int roundNumber);
|
||||
void biddingAverageChanged(const int roundNumber);
|
||||
|
||||
private slots:
|
||||
void onRowCountChanged(const QModelIndex& parent, int first, int last);
|
||||
|
||||
@ -81,6 +100,11 @@ class TableModel : public QAbstractTableModel {
|
||||
QModelIndex searchItemIndex(const ModelItemValues givenItemValues) const;
|
||||
bool isItemEqualToItemValues(const QModelIndex& itemIndex,
|
||||
const ModelItemValues givenItemValues) const;
|
||||
|
||||
int nPlacedBiddings(const UserRoles biddingRole) const;
|
||||
int biddingSum(const UserRoles biddingRole) const;
|
||||
qreal averageBiddingAmount(const UserRoles biddingRole) const;
|
||||
qreal totalSharesWithBiddings(const UserRoles biddingRole) const;
|
||||
};
|
||||
|
||||
#endif // TABLEMODEL_H
|
||||
|
||||
Reference in New Issue
Block a user