adding some extra signals
This commit is contained in:
parent
564aec2bda
commit
3de13bb09f
1 changed files with 9 additions and 0 deletions
|
@ -60,6 +60,14 @@ pub mod song_model {
|
||||||
fn font_size_changed(self: Pin<&mut SongModel>);
|
fn font_size_changed(self: Pin<&mut SongModel>);
|
||||||
#[qsignal]
|
#[qsignal]
|
||||||
fn background_changed(self: Pin<&mut SongModel>);
|
fn background_changed(self: Pin<&mut SongModel>);
|
||||||
|
#[qsignal]
|
||||||
|
fn audio_changed(self: Pin<&mut SongModel>);
|
||||||
|
#[qsignal]
|
||||||
|
fn lyrics_changed(self: Pin<&mut SongModel>);
|
||||||
|
#[qsignal]
|
||||||
|
fn font_changed(self: Pin<&mut SongModel>);
|
||||||
|
#[qsignal]
|
||||||
|
fn author_changed(self: Pin<&mut SongModel>);
|
||||||
|
|
||||||
#[qinvokable]
|
#[qinvokable]
|
||||||
fn clear(self: Pin<&mut SongModel>);
|
fn clear(self: Pin<&mut SongModel>);
|
||||||
|
@ -590,6 +598,7 @@ impl song_model::SongModel {
|
||||||
let (index, model_index, vector_roles) =
|
let (index, model_index, vector_roles) =
|
||||||
self.as_mut().get_indices(song_id, SongRoles::Audio);
|
self.as_mut().get_indices(song_id, SongRoles::Audio);
|
||||||
|
|
||||||
|
debug!(?updated_audio);
|
||||||
let db = &mut self.as_mut().get_db();
|
let db = &mut self.as_mut().get_db();
|
||||||
let result = update(songs.filter(id.eq(song_id)))
|
let result = update(songs.filter(id.eq(song_id)))
|
||||||
.set(audio.eq(updated_audio.to_string()))
|
.set(audio.eq(updated_audio.to_string()))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue