mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:57:44 +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
|
@ -12,7 +12,7 @@ public:
|
|||
Name,
|
||||
};
|
||||
|
||||
explicit IRCWindowListModel(IRCClient&);
|
||||
static Retained<IRCWindowListModel> create(IRCClient& client) { return adopt(*new IRCWindowListModel(client)); }
|
||||
virtual ~IRCWindowListModel() override;
|
||||
|
||||
virtual int row_count() const override;
|
||||
|
@ -26,5 +26,7 @@ public:
|
|||
Function<void(IRCWindow&)> on_activation;
|
||||
|
||||
private:
|
||||
explicit IRCWindowListModel(IRCClient&);
|
||||
|
||||
IRCClient& m_client;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue