diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2024-07-13 16:14:36 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2024-07-13 16:14:36 +0200 |
| commit | f8bfd268523ff5abd3cf5490d5b892ff49954f47 (patch) | |
| tree | 2af1079ec797c1617f1d88b43a847f7ce28cecdb /app/src | |
| parent | e4130ea27cc3a13780e95bd0654675336fa564ec (diff) | |
| download | turns-f8bfd268523ff5abd3cf5490d5b892ff49954f47.tar.xz turns-f8bfd268523ff5abd3cf5490d5b892ff49954f47.zip | |
app/ui: make list entry title editable
Diffstat (limited to 'app/src')
| -rw-r--r-- | app/src/widgets/participant_list_row.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/app/src/widgets/participant_list_row.cpp b/app/src/widgets/participant_list_row.cpp index bc3108e..10bcc2d 100644 --- a/app/src/widgets/participant_list_row.cpp +++ b/app/src/widgets/participant_list_row.cpp @@ -14,13 +14,21 @@ namespace turns::app::widgets : Glib::ObjectBase(TYPE_NAME) , template_widget<participant_list_row, Gtk::ListBoxRow>{TEMPLATE} { + m_edit = get_widget<Gtk::ToggleButton>("edit"); m_header = get_widget<Gtk::Box>("header"); m_image = get_widget<Gtk::Image>("image"); m_prefixes = get_widget<Gtk::Box>("prefixes"); m_subtitle = get_widget<Gtk::Label>("subtitle"); m_suffixes = get_widget<Gtk::Box>("suffixes"); - m_title = get_widget<Gtk::Label>("title"); + m_title = get_widget<Gtk::EditableLabel>("title"); m_title_box = get_widget<Gtk::Box>("title_box"); + + m_edit->signal_clicked().connect([this]{ + if(m_edit->get_active()) + { + m_title->start_editing(); + } + }); } auto participant_list_row::set_subtitle(Glib::ustring const & value) -> void |
