summaryrefslogtreecommitdiff
path: root/DevTools/HackStudio/WidgetTreeModel.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-02 15:07:41 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-02 15:15:33 +0100
commitc5bd9d4ed1d80ac91d46146565127b0c185f1b43 (patch)
treeb4ee9ba5999778450f8eb4006df89110617b4a10 /DevTools/HackStudio/WidgetTreeModel.h
parent2d39da5405a4527e91e853ddb1e56a539c96c6c1 (diff)
downloadserenity-c5bd9d4ed1d80ac91d46146565127b0c185f1b43.zip
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! :^)
Diffstat (limited to 'DevTools/HackStudio/WidgetTreeModel.h')
-rw-r--r--DevTools/HackStudio/WidgetTreeModel.h20
1 files changed, 10 insertions, 10 deletions
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 <LibGUI/GModel.h>
#include <LibGUI/GPainter.h>
-class WidgetTreeModel final : public GModel {
+class WidgetTreeModel final : public GUI::Model {
public:
- static NonnullRefPtr<WidgetTreeModel> create(GWidget& root) { return adopt(*new WidgetTreeModel(root)); }
+ static NonnullRefPtr<WidgetTreeModel> 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<GWidget> m_root;
+ NonnullRefPtr<GUI::Widget> m_root;
GIcon m_widget_icon;
};