! * sets the current project file name. If not empty, the path of the project file * is determined that is then used as the default location for the exported file. */
| 174 | * is determined that is then used as the default location for the exported file. |
| 175 | */ |
| 176 | void ExportSpreadsheetDialog::setProjectFileName(const QString& name) { |
| 177 | if (name.isEmpty()) |
| 178 | return; |
| 179 | |
| 180 | m_projectPath = QFileInfo(name).canonicalPath(); |
| 181 | } |
| 182 | |
| 183 | void ExportSpreadsheetDialog::setFileName(const QString& name) { |
| 184 | if (m_projectPath.isEmpty()) { |