31 lines
771 B
C++
31 lines
771 B
C++
#ifndef BIDDINGROUNDPROGRESSLAYOUT_H
|
|
#define BIDDINGROUNDPROGRESSLAYOUT_H
|
|
|
|
#include <QHBoxLayout>
|
|
|
|
class QLabel;
|
|
class QProgressBar;
|
|
|
|
class BiddingRoundProgressLayout : public QHBoxLayout {
|
|
Q_OBJECT
|
|
public:
|
|
BiddingRoundProgressLayout(const int nCurrentBiddings,
|
|
const int nExpectedBiddings,
|
|
QWidget* parent = nullptr);
|
|
|
|
void setCurrentBiddings(const int value);
|
|
void setExpectedBiddings(const int value);
|
|
|
|
private:
|
|
int m_nCurrentBiddings;
|
|
int m_nExpectedBiddings;
|
|
|
|
QLabel* m_nBiddingsLabel = nullptr;
|
|
QLabel* m_nExpectedBiddingLabel = nullptr;
|
|
QProgressBar* m_biddingRoundProgressBar = nullptr;
|
|
|
|
void updateEnabledStatus();
|
|
};
|
|
|
|
#endif // BIDDINGROUNDPROGRESSLAYOUT_H
|