VendorGroup::VendorGroup(QWidget *pParent, const char *pName) : QWidget(pParent) { setObjectName(pName); setupUi(this); setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed)); _select->setCurrentIndex(All); _vend->setId(-1); _vendorTypes->setId(-1); _vendorType->setText(""); connect(_select,SIGNAL(currentIndexChanged(int)), this, SIGNAL(updated())); connect(_select,SIGNAL(currentIndexChanged(int)), this, SIGNAL(newState(int))); connect(_vend, SIGNAL(newId(int)), this, SIGNAL(updated())); connect(_vend, SIGNAL(newId(int)), this, SIGNAL(newVendId(int))); connect(_vendorTypes, SIGNAL(newID(int)), this, SIGNAL(updated())); connect(_vendorTypes, SIGNAL(newID(int)), this, SIGNAL(newVendTypeId(int))); connect(_vendorType, SIGNAL(editingFinished()), this, SIGNAL(updated())); connect(_vendorType, SIGNAL(editingFinished()), this, SLOT(sTypePatternFinished())); connect(_vendorType,SIGNAL(textChanged(QString)), this, SIGNAL(newTypePattern(QString))); setFocusProxy(_select); }
CustomerSelector::CustomerSelector(QWidget *pParent, const char *pName) : QWidget(pParent, pName) { setupUi(this); setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed)); _select->setCurrentIndex(All); _cust->setId(-1); _customerTypes->setId(-1); _customerType->setText(""); connect(_select,SIGNAL(currentIndexChanged(int)), this, SIGNAL(updated())); connect(_select,SIGNAL(currentIndexChanged(int)), this, SIGNAL(newState(int))); connect(_cust, SIGNAL(newId(int)), this, SIGNAL(updated())); connect(_cust, SIGNAL(newId(int)), this, SIGNAL(newCustId(int))); connect(_customerTypes, SIGNAL(newID(int)), this, SIGNAL(updated())); connect(_customerTypes, SIGNAL(newID(int)), this, SIGNAL(newCustTypeId(int))); connect(_customerType, SIGNAL(editingFinished()), this, SIGNAL(updated())); connect(_customerType, SIGNAL(editingFinished()), this, SLOT(sTypePatternFinished())); connect(_customerType,SIGNAL(textChanged(QString)), this, SIGNAL(newTypePattern(QString))); setFocusProxy(_select); }
void VendorGroup::setTypePattern(const QString &p) { _vendorType->setText(p); sTypePatternFinished(); setState(TypePattern); }
void CustomerSelector::setTypePattern(const QString &p) { _customerType->setText(p); sTypePatternFinished(); setState(TypePattern); }