Improved EET integration- switch to online/offline mode now possible.
Application starts to maximized window.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user