Logo Search packages:      
Sourcecode: qt4-x11 version File versions

void AddressBook::addContact (  )  [slot]

[slots]

[addContact]

[disabling navigation]

[disabling navigation]

Definition at line 93 of file addressbook.cpp.

References addButton, QLineEdit::clear(), QTextEdit::clear(), nameLine, oldName, QWidget::setEnabled(), QWidget::setFocus(), QLineEdit::setReadOnly(), QTextEdit::setReadOnly(), QWidget::show(), submitButton, QLineEdit::text, and QTextEdit::toPlainText().

{
    oldName = nameLine->text();
    oldAddress = addressText->toPlainText();

    nameLine->clear();
    addressText->clear();
    
    nameLine->setReadOnly(false);
    nameLine->setFocus(Qt::OtherFocusReason);
    addressText->setReadOnly(false);

    addButton->setEnabled(false);
    submitButton->show();
    cancelButton->show();
}


Generated by  Doxygen 1.6.0   Back to index