From c5bd9d4ed1d80ac91d46146565127b0c185f1b43 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 2 Feb 2020 15:07:41 +0100 Subject: LibGUI: Put all classes in the GUI namespace and remove the leading G This took me a moment. Welcome to the new world of GUI::Widget! :^) --- DevTools/HackStudio/WidgetTreeModel.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'DevTools/HackStudio/WidgetTreeModel.h') diff --git a/DevTools/HackStudio/WidgetTreeModel.h b/DevTools/HackStudio/WidgetTreeModel.h index 5b7523644a..28bbeff59e 100644 --- a/DevTools/HackStudio/WidgetTreeModel.h +++ b/DevTools/HackStudio/WidgetTreeModel.h @@ -29,23 +29,23 @@ #include #include -class WidgetTreeModel final : public GModel { +class WidgetTreeModel final : public GUI::Model { public: - static NonnullRefPtr create(GWidget& root) { return adopt(*new WidgetTreeModel(root)); } + static NonnullRefPtr create(GUI::Widget& root) { return adopt(*new WidgetTreeModel(root)); } virtual ~WidgetTreeModel() override; - virtual int row_count(const GModelIndex& = GModelIndex()) const override; - virtual int column_count(const GModelIndex& = GModelIndex()) const override; - virtual GVariant data(const GModelIndex&, Role = Role::Display) const override; - virtual GModelIndex index(int row, int column, const GModelIndex& parent = GModelIndex()) const override; - virtual GModelIndex parent_index(const GModelIndex&) const override; + virtual int row_count(const GUI::ModelIndex& = GUI::ModelIndex()) const override; + virtual int column_count(const GUI::ModelIndex& = GUI::ModelIndex()) const override; + virtual GUI::Variant data(const GUI::ModelIndex&, Role = Role::Display) const override; + virtual GUI::ModelIndex index(int row, int column, const GUI::ModelIndex& parent = GUI::ModelIndex()) const override; + virtual GUI::ModelIndex parent_index(const GUI::ModelIndex&) const override; virtual void update() override; - GModelIndex index_for_widget(GWidget&) const; + GUI::ModelIndex index_for_widget(GUI::Widget&) const; private: - explicit WidgetTreeModel(GWidget&); + explicit WidgetTreeModel(GUI::Widget&); - NonnullRefPtr m_root; + NonnullRefPtr m_root; GIcon m_widget_icon; }; -- cgit v1.2.3