! * Saves the document to the file with the given \a name. * Returns true if saved successfully. */
| 1242 | * Returns true if saved successfully. |
| 1243 | */ |
| 1244 | bool Document::saveAs(const QString &name) const |
| 1245 | { |
| 1246 | QFile file(name); |
| 1247 | if (file.open(QIODevice::WriteOnly)) |
| 1248 | return saveAs(&file); |
| 1249 | return false; |
| 1250 | } |
| 1251 | |
| 1252 | /*! |
| 1253 | * \overload |
nothing calls this directly
no test coverage detected