equal
deleted
inserted
replaced
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] |