So, as far as I understand, you need a connection between "editing" and "refreshing". When you click on "edit" or "save" (afterwards), this should trigger the Refresh-slot, which reloads the list.
I would recommend...
- to add an "OnSave"-slot-Property (setter and getter can be deleted) to your EditChannel-Popup.
- In your EditChannel-Popup you also need to create an save-slot that fires postsignal OnSave;
- Now add another "OnSave"-slot-Property (setter and getter can be deleted) to your ChannelsTableItem.
- When you click in your ChannelsTableItem on the edit button, I assume a slot will be fired, which opens a edit-popup. In this edit-slot connect the OnSave to the popup's OnSave. For example: popup.OnSave = OnSave.
- At last, go to Screens::Channel.OnLoadItem and add a itemView.OnSave = Refresh;
What is the plan, what does this do?
Channels contains the refresh-slot (which reloads the list) and gives it to the list items and the list items give the slot to the edit-popup. When you have edited a line and you click "save" this Refresh-slot will be fired and so the list reloads. Voila :-)
Overview:
List
-Refresh (slot)
-Items (object, that are connected via OnSave to Refresh)
Item
-OnSave (slot property)
-edit (slot, that opens the EditPopup and connects Item.OnSave to EditPopup.OnSave)
EditPopup
-OnSave (slot property)
-save (slot, that fires OnSave)
Hope this helps.
Chris