mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:47:34 +00:00
LibGUI: Make GTableModel a retainable object.
It became clear that this class needs to support multiple owners.
This commit is contained in:
parent
41c744b3c8
commit
f47945759b
22 changed files with 44 additions and 34 deletions
|
@ -46,8 +46,8 @@ public:
|
|||
void register_subwindow(IRCWindow&);
|
||||
void unregister_subwindow(IRCWindow&);
|
||||
|
||||
IRCWindowListModel* client_window_list_model() { return m_client_window_list_model; }
|
||||
const IRCWindowListModel* client_window_list_model() const { return m_client_window_list_model; }
|
||||
IRCWindowListModel* client_window_list_model() { return m_client_window_list_model.ptr(); }
|
||||
const IRCWindowListModel* client_window_list_model() const { return m_client_window_list_model.ptr(); }
|
||||
|
||||
int window_count() const { return m_windows.size(); }
|
||||
const IRCWindow& window_at(int index) const { return *m_windows.at(index); }
|
||||
|
@ -118,7 +118,6 @@ private:
|
|||
|
||||
IRCWindow* m_server_subwindow { nullptr };
|
||||
|
||||
IRCWindowListModel* m_client_window_list_model { nullptr };
|
||||
|
||||
Retained<IRCWindowListModel> m_client_window_list_model;
|
||||
Retained<IRCLogBuffer> m_log;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue