From d5844ab73db0e426a3b392be95a91b051dbb03b5 Mon Sep 17 00:00:00 2001 From: Josef Rokos Date: Tue, 19 Jun 2018 20:40:45 +0200 Subject: [PATCH] Button OK on pay dialog is now bigger. --- shop/paydialog.cpp | 5 ++++ shop/paydialog.h | 2 ++ shop/paydialog.ui | 75 +++++++++++++++++----------------------------- 3 files changed, 34 insertions(+), 48 deletions(-) diff --git a/shop/paydialog.cpp b/shop/paydialog.cpp index 3995a46..0cb3302 100644 --- a/shop/paydialog.cpp +++ b/shop/paydialog.cpp @@ -41,3 +41,8 @@ void PayDialog::on_recieved_valueChanged(double value) ui->labelReturn->setText(QString::number(0, 'f', 2)); } } + +void PayDialog::on_btnOk_clicked() +{ + accept(); +} diff --git a/shop/paydialog.h b/shop/paydialog.h index 9f72755..842de50 100644 --- a/shop/paydialog.h +++ b/shop/paydialog.h @@ -23,6 +23,8 @@ private slots: void on_recieved_valueChanged(double value); + void on_btnOk_clicked(); + private: Ui::PayDialog *ui; QDecDouble m_total; diff --git a/shop/paydialog.ui b/shop/paydialog.ui index b9624d5..4eb9700 100644 --- a/shop/paydialog.ui +++ b/shop/paydialog.ui @@ -7,9 +7,15 @@ 0 0 457 - 168 + 179 + + + 0 + 0 + + Recieve money @@ -105,19 +111,6 @@ - - - - true - - - Qt::Horizontal - - - QDialogButtonBox::Ok - - - @@ -131,41 +124,27 @@ + + + + + 0 + 0 + + + + + 0 + 50 + + + + OK + + + - - - buttonBox - accepted() - PayDialog - accept() - - - 248 - 254 - - - 157 - 274 - - - - - buttonBox - rejected() - PayDialog - reject() - - - 316 - 260 - - - 286 - 274 - - - - +