mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-03 14:50:02 +00:00
LibGUI+HackStudio: Remove editing specific hacks from GUI::Command
Use is<T> to check for specific types of command in HackStudio instead of cluttering up GUI::Command with specialized getters.
This commit is contained in:
parent
f052a66c5d
commit
68a0e4f8d5
Notes:
sideshowbarker
2024-07-18 18:47:06 +09:00
Author: https://github.com/awesomekling
Commit: 68a0e4f8d5
3 changed files with 4 additions and 9 deletions
|
@ -206,7 +206,6 @@ public:
|
|||
virtual void perform_formatting(const TextDocument::Client&) override;
|
||||
virtual void undo() override;
|
||||
virtual void redo() override;
|
||||
virtual bool is_insert_text() const override { return true; }
|
||||
const String& text() const { return m_text; }
|
||||
const TextRange& range() const { return m_range; }
|
||||
|
||||
|
@ -220,7 +219,6 @@ public:
|
|||
RemoveTextCommand(TextDocument&, const String&, const TextRange&);
|
||||
virtual void undo() override;
|
||||
virtual void redo() override;
|
||||
virtual bool is_remove_text() const override { return true; }
|
||||
const TextRange& range() const { return m_range; }
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue