diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-12-13 20:54:40 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-12-13 20:54:40 +0100 |
commit | 2d39bce3f6244fa270c6c909023475a481436681 (patch) | |
tree | 24f70f2a22cfc50ead32ddab0c2436e0b75abe0f /Libraries/LibGUI/GAbstractView.h | |
parent | 69d05fbf44607dd16351dde6ad868d577ca6e69a (diff) | |
download | serenity-2d39bce3f6244fa270c6c909023475a481436681.zip |
LibGUI: Add a GAbstractColumnView base class for GTableView
Almost everything in GTableView moves up to GAbstractColumnView.
This is in preparation for sharing a base class between GTableView
and GTreeView :^)
Diffstat (limited to 'Libraries/LibGUI/GAbstractView.h')
-rw-r--r-- | Libraries/LibGUI/GAbstractView.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Libraries/LibGUI/GAbstractView.h b/Libraries/LibGUI/GAbstractView.h index 218d305bb7..c4293642bd 100644 --- a/Libraries/LibGUI/GAbstractView.h +++ b/Libraries/LibGUI/GAbstractView.h @@ -12,9 +12,6 @@ class GAbstractView : public GScrollableWidget { friend class GModel; public: - explicit GAbstractView(GWidget* parent); - virtual ~GAbstractView() override; - void set_model(RefPtr<GModel>&&); GModel* model() { return m_model.ptr(); } const GModel* model() const { return m_model.ptr(); } @@ -48,6 +45,9 @@ public: NonnullRefPtr<Font> font_for_index(const GModelIndex&) const; protected: + explicit GAbstractView(GWidget* parent); + virtual ~GAbstractView() override; + virtual void did_scroll() override; void activate(const GModelIndex&); void update_edit_widget_position(); |