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
-
-
-
-
+