diff options
author | Andreas Kling <kling@serenityos.org> | 2020-10-30 10:58:27 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-10-30 17:03:28 +0100 |
commit | aef56159a84a3e88422f7e7ebc11fe145ffe9075 (patch) | |
tree | 1ac8a8f2c652a2c3f0f9e39ff247e98909a09619 /Applications/PixelPaint/ImageEditor.h | |
parent | 34014fa838cbc7e427ae00818fdf8f665f0e7801 (diff) | |
download | serenity-aef56159a84a3e88422f7e7ebc11fe145ffe9075.zip |
LibGUI: Add Widget focus policies
Every widget now has a GUI::FocusPolicy that determines how it can
receive focus:
- NoFocus: The widget is not focusable (default)
- TabFocus: The widget can be focused using the tab key.
- ClickFocus: The widget can be focused by clicking on it.
- StrongFocus: Both of the above.
For widgets that have a focus proxy, getting/setting the focus policy
will affect the proxy instead.
Diffstat (limited to 'Applications/PixelPaint/ImageEditor.h')
-rw-r--r-- | Applications/PixelPaint/ImageEditor.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Applications/PixelPaint/ImageEditor.h b/Applications/PixelPaint/ImageEditor.h index 4c9b7f8d75..4e343e5656 100644 --- a/Applications/PixelPaint/ImageEditor.h +++ b/Applications/PixelPaint/ImageEditor.h @@ -82,8 +82,6 @@ public: private: ImageEditor(); - virtual bool accepts_focus() const override { return true; } - virtual void paint_event(GUI::PaintEvent&) override; virtual void second_paint_event(GUI::PaintEvent&) override; virtual void mousedown_event(GUI::MouseEvent&) override; |