! * 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. */
| 152 | * is determined that is then used as the default location for the exported file. |
| 153 | */ |
| 154 | void ExportWorksheetDialog::setProjectFileName(const QString& name) { |
| 155 | if (name.isEmpty()) |
| 156 | return; |
| 157 | |
| 158 | m_projectPath = QFileInfo(name).canonicalPath(); |
| 159 | } |
| 160 | |
| 161 | void ExportWorksheetDialog::setFileName(const QString& name) { |
| 162 | if (m_projectPath.isEmpty()) { |