mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:47:35 +00:00
LibGUI: Make GUI::Widget::event() protected
This commit is contained in:
parent
d0072aef8b
commit
247717431d
2 changed files with 6 additions and 6 deletions
|
@ -204,7 +204,7 @@ SpreadsheetView::SpreadsheetView(Sheet& sheet)
|
||||||
auto delegate = make<EditingDelegate>(*m_sheet);
|
auto delegate = make<EditingDelegate>(*m_sheet);
|
||||||
delegate->on_cursor_key_pressed = [this](auto& event) {
|
delegate->on_cursor_key_pressed = [this](auto& event) {
|
||||||
m_table_view->stop_editing();
|
m_table_view->stop_editing();
|
||||||
m_table_view->event(event);
|
m_table_view->dispatch_event(event);
|
||||||
};
|
};
|
||||||
return delegate;
|
return delegate;
|
||||||
};
|
};
|
||||||
|
|
|
@ -148,11 +148,6 @@ public:
|
||||||
bool updates_enabled() const { return m_updates_enabled; }
|
bool updates_enabled() const { return m_updates_enabled; }
|
||||||
void set_updates_enabled(bool);
|
void set_updates_enabled(bool);
|
||||||
|
|
||||||
virtual void event(Core::Event&) override;
|
|
||||||
|
|
||||||
// This is called after children have been painted.
|
|
||||||
virtual void second_paint_event(PaintEvent&);
|
|
||||||
|
|
||||||
Gfx::IntRect relative_rect() const { return m_relative_rect; }
|
Gfx::IntRect relative_rect() const { return m_relative_rect; }
|
||||||
Gfx::IntPoint relative_position() const { return m_relative_rect.location(); }
|
Gfx::IntPoint relative_position() const { return m_relative_rect.location(); }
|
||||||
|
|
||||||
|
@ -310,6 +305,11 @@ public:
|
||||||
protected:
|
protected:
|
||||||
Widget();
|
Widget();
|
||||||
|
|
||||||
|
virtual void event(Core::Event&) override;
|
||||||
|
|
||||||
|
// This is called after children have been painted.
|
||||||
|
virtual void second_paint_event(PaintEvent&);
|
||||||
|
|
||||||
virtual void custom_layout() { }
|
virtual void custom_layout() { }
|
||||||
virtual void did_change_font() { }
|
virtual void did_change_font() { }
|
||||||
virtual void did_layout() { }
|
virtual void did_layout() { }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue