void LeadDetails::initialize() { //ReferencedDataModel::setModelForCombo(mUi->campaign_id, CampaignRef); // TODO FIXME: leads can refer to account names which are do not match sugar accounts ReferencedDataModel::setModelForCombo(mUi->account_id, AccountRef); ReferencedDataModel::setModelForCombo(mUi->assigned_user_id, AssignedToRef); connect(mUi->clearDateButton, SIGNAL(clicked()), this, SLOT(slotClearDate())); connect(mUi->calendarButton->calendarWidget(), SIGNAL(clicked(QDate)), this, SLOT(slotSetBirthDate())); }
void LeadDetails::initialize() { mUi->lead_source->addItems(sourceItems()); ReferencedDataModel::setModelForCombo(mUi->campaign_name, CampaignRef); mUi->salutation->addItems(salutationItems()); // TODO FIXME: leads can refer to account names which are do not match sugar accounts ReferencedDataModel::setModelForCombo(mUi->account_name, AccountRef); ReferencedDataModel::setModelForCombo(mUi->assigned_user_name, AssignedToRef); connect(mUi->clearDateButton, SIGNAL(clicked()), this, SLOT(slotClearDate())); connect(mUi->calendarButton->calendarWidget(), SIGNAL(clicked(QDate)), this, SLOT(slotSetBirthDate())); mUi->status->addItems(statusItems()); }