* @brief Cancels the current import and clears loaded data. */
| 141 | * @brief Cancels the current import and clears loaded data. |
| 142 | */ |
| 143 | void DataModel::DBCImporter::cancelImport() |
| 144 | { |
| 145 | m_messages.clear(); |
| 146 | m_tableNames.clear(); |
| 147 | m_dbcFilePath.clear(); |
| 148 | m_valueDescriptions.clear(); |
| 149 | Q_EMIT messagesChanged(); |
| 150 | Q_EMIT dbcFileNameChanged(); |
| 151 | } |
| 152 | |
| 153 | /** |
| 154 | * @brief Parses the DBC file at filePath and emits previewReady on success. |