mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 14:25:06 +00:00
LibGUI: Remove confusing GModelNotification concept
This was a bad idea and it didn't stick. Instead we should just use the simple "on_foo" hook functions like we do for everything else. :^)
This commit is contained in:
parent
4f3234148a
commit
f7dce05c82
6 changed files with 8 additions and 51 deletions
|
@ -18,27 +18,6 @@ enum class GSortOrder {
|
|||
Descending
|
||||
};
|
||||
|
||||
class GModelNotification {
|
||||
public:
|
||||
enum Type {
|
||||
Invalid = 0,
|
||||
ModelUpdated,
|
||||
};
|
||||
|
||||
explicit GModelNotification(Type type, const GModelIndex& index = GModelIndex())
|
||||
: m_type(type)
|
||||
, m_index(index)
|
||||
{
|
||||
}
|
||||
|
||||
Type type() const { return m_type; }
|
||||
GModelIndex index() const { return m_index; }
|
||||
|
||||
private:
|
||||
Type m_type { Invalid };
|
||||
GModelIndex m_index;
|
||||
};
|
||||
|
||||
class GModel : public RefCounted<GModel> {
|
||||
public:
|
||||
struct ColumnMetadata {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue