/* * Constructs a cashReceiptItem as a child of 'parent', with the * name 'name' and widget flags set to 'f'. * * The dialog will by default be modeless, unless you set 'modal' to * true to construct a modal dialog. */ cashReceiptItem::cashReceiptItem(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl) : XDialog(parent, name, modal, fl) { setupUi(this); // signals and slots connections connect(_buttonBox, SIGNAL(accepted()), this, SLOT(sSave())); connect(_buttonBox, SIGNAL(rejected()), this, SLOT(reject())); connect(_discount, SIGNAL(clicked()), this, SLOT(sDiscount())); _cust->setReadOnly(true); adjustSize(); }
selectPayment::selectPayment(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl) : XDialog(parent, name, modal, fl) { setupUi(this); connect(_discount, SIGNAL(clicked()), this, SLOT(sDiscount())); connect(_save, SIGNAL(clicked()), this, SLOT(sSave())); connect(_selected, SIGNAL(idChanged(int)), this, SLOT(sPriceGroup())); _bankaccnt->setAllowNull(true); _bankaccnt->setType(XComboBox::APBankAccounts); _vendor->setReadOnly(true); sPriceGroup(); }