currencyConversion::currencyConversion(QWidget* parent, const char* name, bool modal, Qt::WFlags fl) : XDialog(parent, name, modal, fl) { setupUi(this); connect(_close, SIGNAL(clicked()), this, SLOT(_sClose())); connect(_save, SIGNAL(clicked()), this, SLOT(_sSave())); connect(_rate, SIGNAL(lostFocus()), this, SLOT(sFixRate())); _currency->setType(XComboBox::CurrenciesNotBase); _rate->setValidator(new RateValidator (_rate) ); }
currencyConversion::currencyConversion(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl) : XDialog(parent, name, modal, fl) { setupUi(this); connect(_buttonBox, SIGNAL(rejected()), this, SLOT(_sClose())); connect(_buttonBox, SIGNAL(accepted()), this, SLOT(_sSave())); connect(_rate, SIGNAL(editingFinished()), this, SLOT(sFixRate())); _currency->setType(XComboBox::CurrenciesNotBase); _rate->setValidator(new RateValidator (_rate) ); }
/* * Constructs a currencyConversion 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. */ currencyConversion::currencyConversion(QWidget* parent, const char* name, bool modal, Qt::WFlags fl) : QDialog(parent, name, modal, fl) { setupUi(this); // signals and slots connections connect(_close, SIGNAL(clicked()), this, SLOT(_sClose())); connect(_save, SIGNAL(clicked()), this, SLOT(_sSave())); connect(_rate, SIGNAL(lostFocus()), this, SLOT(sFixRate())); init(); }