resize date column

This commit is contained in:
Martin Brodbeck 2018-08-14 15:12:58 +02:00
parent b0423e5e6a
commit 4cd0b42072

View file

@ -177,6 +177,7 @@ void MainWindow::onPaidButtonTriggered()
if (marketplace_->basketSize() > 0) { if (marketplace_->basketSize() > 0) {
QString lastPrice{marketplace_->getBasketSumAsString().c_str()}; QString lastPrice{marketplace_->getBasketSumAsString().c_str()};
dynamic_cast<BasketModel*>(ui_.basketView->model())->finishSale(); dynamic_cast<BasketModel*>(ui_.basketView->model())->finishSale();
ui_.salesView->resizeColumnToContents(0);
ui_.lastPriceLabel1->setText(lastPrice); ui_.lastPriceLabel1->setText(lastPrice);
ui_.lastPriceLabel2->setText(lastPrice); ui_.lastPriceLabel2->setText(lastPrice);
ui_.basketSumLabel->setText(formatCentAsEuroString(0).c_str()); ui_.basketSumLabel->setText(formatCentAsEuroString(0).c_str());