mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +00:00
LibGUI: Remove `AbstractView::did_update_model()'
...and use `ModelClient::model_did_update()' instead. This makes AbstractView a ModelClient (which it always was anyway).
This commit is contained in:
parent
868c315e51
commit
71de8b7480
13 changed files with 26 additions and 23 deletions
|
@ -27,13 +27,17 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Function.h>
|
||||
#include <LibGUI/Model.h>
|
||||
#include <LibGUI/ModelSelection.h>
|
||||
#include <LibGUI/ScrollableWidget.h>
|
||||
#include <LibGfx/TextElision.h>
|
||||
|
||||
namespace GUI {
|
||||
|
||||
class AbstractView : public ScrollableWidget {
|
||||
class AbstractView
|
||||
: public ScrollableWidget
|
||||
, public ModelClient {
|
||||
|
||||
C_OBJECT_ABSTRACT(AbstractView);
|
||||
|
||||
public:
|
||||
|
@ -87,7 +91,7 @@ public:
|
|||
bool is_multi_select() const { return m_multi_select; }
|
||||
void set_multi_select(bool);
|
||||
|
||||
virtual void did_update_model(unsigned flags);
|
||||
virtual void model_did_update(unsigned flags) override;
|
||||
virtual void did_update_selection();
|
||||
|
||||
virtual Gfx::IntRect content_rect(const ModelIndex&) const { return {}; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue