From d546b61f00bed2d9912cc5871da242daef7d3c5f Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Wed, 17 Oct 2018 09:25:10 +0200 Subject: [PATCH] set focus on seller no edit field --- src/gui/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index fa17dd1..c79a776 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -333,6 +333,7 @@ void MainWindow::onCancelArticleButtonClicked([[maybe_unused]] bool checked) } ui_.basketSumLabel->setText(marketplace_->getBasketSumAsString().c_str()); // Update basket sum + ui_.sellerNoEdit->setFocus(); } void MainWindow::onCancelSaleButtonClicked([[maybe_unused]] bool checked) @@ -405,6 +406,7 @@ void MainWindow::onCancelAllArticlesButtonClicked([[maybe_unused]] bool checked) dynamic_cast(ui_.basketView->model())->cancelSale(); ui_.basketSumLabel->setText(marketplace_->getBasketSumAsString().c_str()); // Update basket sum + ui_.sellerNoEdit->setFocus(); } void MainWindow::onAboutQt() { QMessageBox::aboutQt(this); }