* @brief Clears the parsed message state and notifies QML. */
| 920 | * @brief Clears the parsed message state and notifies QML. |
| 921 | */ |
| 922 | void DataModel::ProtoImporter::cancelImport() |
| 923 | { |
| 924 | m_messages.clear(); |
| 925 | m_protoFilePath.clear(); |
| 926 | Q_EMIT messagesChanged(); |
| 927 | Q_EMIT fileNameChanged(); |
| 928 | } |
| 929 | |
| 930 | /** |
| 931 | * @brief Parses the proto file at filePath and emits previewReady on success. |