Improved EET integration- switch to online/offline mode now possible.

Application starts to maximized window.
This commit is contained in:
2017-02-24 23:19:46 +01:00
parent abed951e1f
commit 9418d739e6
7 changed files with 81 additions and 7 deletions
+10
View File
@@ -1,5 +1,6 @@
#include "paydialog.h"
#include "ui_paydialog.h"
#include "shopservice.h"
PayDialog::PayDialog(QDecDouble total, QWidget *parent) :
QDialog(parent),
@@ -10,6 +11,10 @@ PayDialog::PayDialog(QDecDouble total, QWidget *parent) :
ui->labelTotal->setText(QString::number(total.toDouble(), 'f', 2));
ui->labelReturn->setText(QString::number(0, 'f', 2));
ui->recieved->setFocus();
ShopService srv;
ui->checkEet->setVisible(srv.isEetEnabled());
}
PayDialog::~PayDialog()
@@ -17,6 +22,11 @@ PayDialog::~PayDialog()
delete ui;
}
bool PayDialog::sendToEet()
{
return ui->checkEet->checkState() == Qt::Checked;
}
void PayDialog::on_recieved_valueChanged(double value)
{