Mercurial > hg > svapp
comparison framework/MainWindowBase.cpp @ 727:e2ad6fe768b0 spectrogram-export
Tidy
| author | Chris Cannam |
|---|---|
| date | Fri, 10 Jan 2020 14:30:44 +0000 |
| parents | 1e2e03197b8c |
| children | 15da3ab3d416 |
comparison
equal
deleted
inserted
replaced
| 726:1e2e03197b8c | 727:e2ad6fe768b0 |
|---|---|
| 2823 return false; | 2823 return false; |
| 2824 } | 2824 } |
| 2825 | 2825 |
| 2826 if (suffix == "xml" || suffix == "svl") { | 2826 if (suffix == "xml" || suffix == "svl") { |
| 2827 | 2827 |
| 2828 //!!! +selection | |
| 2829 | |
| 2830 QFile file(path); | 2828 QFile file(path); |
| 2831 if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) { | 2829 if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) { |
| 2832 error = tr("Failed to open file %1 for writing").arg(path); | 2830 error = tr("Failed to open file %1 for writing").arg(path); |
| 2833 } else { | 2831 } else { |
| 2834 QTextStream out(&file); | 2832 QTextStream out(&file); |
| 2881 error = writer.getError(); | 2879 error = writer.getError(); |
| 2882 } | 2880 } |
| 2883 } | 2881 } |
| 2884 | 2882 |
| 2885 } else if (suffix == "ttl" || suffix == "n3") { | 2883 } else if (suffix == "ttl" || suffix == "n3") { |
| 2886 | |
| 2887 //!!! +selection | |
| 2888 | 2884 |
| 2889 if (!RDFExporter::canExportModel(model.get())) { | 2885 if (!RDFExporter::canExportModel(model.get())) { |
| 2890 error = tr("Sorry, cannot export this layer type to RDF (supported types are: region, note, text, time instants, time values)"); | 2886 error = tr("Sorry, cannot export this layer type to RDF (supported types are: region, note, text, time instants, time values)"); |
| 2891 } else { | 2887 } else { |
| 2892 RDFExporter exporter(path, model.get()); | 2888 RDFExporter exporter(path, model.get()); |
