examples/itemviews/addressbook/addresswidget.cpp
changeset 33 3e2da88830cd
parent 30 5dc02b23752f
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
   228     if (!file.open(QIODevice::WriteOnly)) {
   228     if (!file.open(QIODevice::WriteOnly)) {
   229         QMessageBox::information(this, tr("Unable to open file"), file.errorString());
   229         QMessageBox::information(this, tr("Unable to open file"), file.errorString());
   230         return;
   230         return;
   231     }
   231     }
   232 
   232 
   233     QList< QPair<QString, QString> > pairs = table->getList();    
   233     QList< QPair<QString, QString> > pairs = table->getList();
   234     QDataStream out(&file);
   234     QDataStream out(&file);
   235     out << pairs;
   235     out << pairs;
   236 }
   236 }
   237 //! [6]
   237 //! [6]