Adding optional QVariant data argument to sendGetRequest to pass it to the server. Using hard coded sendGetRequest(GetBiddingsOfSpecificRound, 2) in fetchCurrentBiddings action to test this.
This commit is contained in:
@ -300,7 +300,8 @@ void MainWindow::findItems() {
|
||||
|
||||
void MainWindow::fetchCurrentBiddings() {
|
||||
showStatusMessage(tr("Invoked 'Server|Fetch current biddings'"));
|
||||
emit m_core->sendGetRequest(GetBiddingsOfHighestRound);
|
||||
// emit m_core->sendGetRequest(GetBiddingsOfHighestRound);
|
||||
emit m_core->sendGetRequest(GetBiddingsOfSpecificRound, 2);
|
||||
}
|
||||
|
||||
void MainWindow::execSettingsDialog() {
|
||||
|
||||
@ -13,12 +13,7 @@ class BiddingRoundControl : public QWidget {
|
||||
explicit BiddingRoundControl(QWidget* parent = nullptr);
|
||||
|
||||
signals:
|
||||
void sendGetRequest(GetRequestTypes type);
|
||||
|
||||
void triggerStartNewRound();
|
||||
void triggerRestartLastRound();
|
||||
void triggerStopCurrentRound();
|
||||
// void refreshCurrentRound();
|
||||
void sendGetRequest(GetRequestTypes type, QVariant data = QVariant());
|
||||
|
||||
public slots:
|
||||
/// button slots
|
||||
|
||||
Reference in New Issue
Block a user