summaryrefslogtreecommitdiff
path: root/Ladybird/ModelTranslator.h
diff options
context:
space:
mode:
authorMacDue <macdue@dueutil.tech>2023-05-08 21:15:35 +0100
committerAndreas Kling <kling@serenityos.org>2023-05-09 06:16:58 +0200
commit09773048b6a15d19bb9843a018ce33b832525837 (patch)
tree42138b71e228dfa3a970f557a4155a12fda00279 /Ladybird/ModelTranslator.h
parent15211cd753440c16db4526b94e9c0d8eb85ea351 (diff)
downloadserenity-09773048b6a15d19bb9843a018ce33b832525837.zip
Ladybird: Allow right clicking and inspecting elements
This adds "Inspect Element" (currently the only entry) to the context menu for the page, which will do what you expect (most of the time), and bring up the Inspector with hovered element selected.
Diffstat (limited to 'Ladybird/ModelTranslator.h')
-rw-r--r--Ladybird/ModelTranslator.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Ladybird/ModelTranslator.h b/Ladybird/ModelTranslator.h
index a276636a1b..40f7c4cde0 100644
--- a/Ladybird/ModelTranslator.h
+++ b/Ladybird/ModelTranslator.h
@@ -23,6 +23,11 @@ public:
endResetModel();
}
+ RefPtr<GUI::Model> underlying_model()
+ {
+ return m_model;
+ }
+
virtual int columnCount(QModelIndex const& parent) const override;
virtual int rowCount(QModelIndex const& parent) const override;
virtual QVariant data(QModelIndex const&, int role) const override;