File indexing completed on 2024-05-26 05:10:17

0001 /*
0002     SPDX-FileCopyrightText: 2010 Fernando Vilas <kmymoney-devel@kde.org>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #include "paymenteditwizardpage.h"
0007 
0008 // ----------------------------------------------------------------------------
0009 // QT Includes
0010 
0011 
0012 // ----------------------------------------------------------------------------
0013 // KDE Includes
0014 
0015 
0016 // ----------------------------------------------------------------------------
0017 // Project Includes
0018 
0019 #include "ui_paymenteditwizardpage.h"
0020 
0021 PaymentEditWizardPage::PaymentEditWizardPage(QWidget *parent)
0022     : QWizardPage(parent),
0023       ui(new Ui::PaymentEditWizardPage)
0024 {
0025     ui->setupUi(this);
0026     // Register the fields with the QWizard and connect the
0027     // appropriate signals to update the "Next" button correctly
0028     registerField("newPaymentEdit", ui->m_newPaymentEdit, "value", SIGNAL(textChanged()));
0029     registerField("newPaymentEditValid", ui->m_newPaymentEdit, "valid", SIGNAL(textChanged()));
0030 
0031     connect(ui->m_newPaymentEdit, &AmountEdit::textChanged, this, &QWizardPage::completeChanged);
0032 
0033     ui->m_newPaymentEdit->setAllowEmpty(true);
0034 }
0035 
0036 PaymentEditWizardPage::~PaymentEditWizardPage()
0037 {
0038     delete ui;
0039 }