summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/GTableView.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-09-21 16:03:59 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-09-21 16:03:59 +0200
commite7b55037f48b8fcddbe283598cad4ef7dcf323f5 (patch)
treea954b20046204aefd0eec325a54bd20bc57060f4 /Libraries/LibGUI/GTableView.h
parentc13b9e22144ab246355d158448a8f6111b5e0a48 (diff)
downloadserenity-e7b55037f48b8fcddbe283598cad4ef7dcf323f5.zip
LibGUI: Convert GTableView to ObjectPtr
Diffstat (limited to 'Libraries/LibGUI/GTableView.h')
-rw-r--r--Libraries/LibGUI/GTableView.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Libraries/LibGUI/GTableView.h b/Libraries/LibGUI/GTableView.h
index a469740cf1..f34d1c887d 100644
--- a/Libraries/LibGUI/GTableView.h
+++ b/Libraries/LibGUI/GTableView.h
@@ -19,7 +19,6 @@ public:
class GTableView : public GAbstractView {
C_OBJECT(GTableView)
public:
- explicit GTableView(GWidget* parent);
virtual ~GTableView() override;
int header_height() const { return m_headers_visible ? 16 : 0; }
@@ -48,7 +47,9 @@ public:
void set_cell_painting_delegate(int column, OwnPtr<GTableCellPaintingDelegate>&&);
-private:
+protected:
+ explicit GTableView(GWidget* parent);
+
virtual void did_update_model() override;
virtual void paint_event(GPaintEvent&) override;
virtual void mousedown_event(GMouseEvent&) override;