1 #include "contactmodifyer.h"
8 * Constructs a ContactModifier which is a child of 'parent', with the
9 * name 'name' and widget flags set to 'f'
11 * The dialog will by default be modeless, unless you set 'modal' to
12 * TRUE to construct a modal dialog.
14 ContactModifier::ContactModifier(CContact* contact, QWidget* parent, const char* name, bool modal, WFlags fl )
15 : ContactModifierBase( parent, name, modal, fl )
19 if (m_contact != '\0')
21 FirstnameLine->setText(contact->firstname());
22 LastnameLine->setText(contact->lastname());
23 AdressLine->setText(contact->adress());
24 PhoneNumberLine->setText(contact->phoneNumber());
29 * Destroys the object and frees any allocated resources
31 ContactModifier::~ContactModifier()
33 // no need to delete child widgets, Qt does it all for us
39 void ContactModifier::slotOK()
41 (void) new CContact( FirstnameLine->text(), LastnameLine->text(), AdressLine->text(), PhoneNumberLine->text());
43 if (m_contact != '\0')