18class AudioClipEditor :
public QObject
24 getEditorSettings CONSTANT FINAL)
27 AudioClipEditor (QObject * parent =
nullptr) : QObject (parent) { }
33 auto getEditorSettings ()
const {
return editor_settings_.get (); }
38 friend void init_from (
40 const AudioClipEditor &other,
43 obj.editor_settings_ =
44 utils::clone_unique_qobject (*other.editor_settings_, &obj);
48 static constexpr auto kEditorSettingsKey =
"editorSettings"sv;
49 friend void to_json (nlohmann::json &j,
const AudioClipEditor &editor)
51 j[kEditorSettingsKey] = editor.editor_settings_;
53 friend void from_json (
const nlohmann::json &j, AudioClipEditor &editor)
55 j.at (kEditorSettingsKey).get_to (editor.editor_settings_);