set focus on seller no edit field
This commit is contained in:
parent
373e143aa4
commit
d546b61f00
1 changed files with 2 additions and 0 deletions
|
@ -333,6 +333,7 @@ void MainWindow::onCancelArticleButtonClicked([[maybe_unused]] bool checked)
|
||||||
}
|
}
|
||||||
|
|
||||||
ui_.basketSumLabel->setText(marketplace_->getBasketSumAsString().c_str()); // Update basket sum
|
ui_.basketSumLabel->setText(marketplace_->getBasketSumAsString().c_str()); // Update basket sum
|
||||||
|
ui_.sellerNoEdit->setFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::onCancelSaleButtonClicked([[maybe_unused]] bool checked)
|
void MainWindow::onCancelSaleButtonClicked([[maybe_unused]] bool checked)
|
||||||
|
@ -405,6 +406,7 @@ void MainWindow::onCancelAllArticlesButtonClicked([[maybe_unused]] bool checked)
|
||||||
dynamic_cast<BasketModel*>(ui_.basketView->model())->cancelSale();
|
dynamic_cast<BasketModel*>(ui_.basketView->model())->cancelSale();
|
||||||
|
|
||||||
ui_.basketSumLabel->setText(marketplace_->getBasketSumAsString().c_str()); // Update basket sum
|
ui_.basketSumLabel->setText(marketplace_->getBasketSumAsString().c_str()); // Update basket sum
|
||||||
|
ui_.sellerNoEdit->setFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::onAboutQt() { QMessageBox::aboutQt(this); }
|
void MainWindow::onAboutQt() { QMessageBox::aboutQt(this); }
|
||||||
|
|
Loading…
Reference in a new issue