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

void AddressWidget::writeToFile ( QString  fileName )



Definition at line 225 of file addresswidget.cpp.

References QIODevice::errorString(), TableModel::getList(), QMessageBox::information(), and QFile::open().

    QFile file(fileName);

    if (!file.open(QIODevice::WriteOnly)) {
        QMessageBox::information(this, tr("Unable to open file"), file.errorString());

    QList< QPair<QString, QString> > pairs = table->getList();    
    QDataStream out(&file);
    out << pairs;

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index