mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 15:07:44 +00:00
LibCore: Add CEvent and make LibGUI/GEvent inherit from it.
This commit is contained in:
parent
696ada2810
commit
b8062f69d8
31 changed files with 98 additions and 159 deletions
|
@ -97,7 +97,7 @@ void MemoryStatsWidget::refresh()
|
|||
fclose(fp);
|
||||
}
|
||||
|
||||
void MemoryStatsWidget::timer_event(GTimerEvent&)
|
||||
void MemoryStatsWidget::timer_event(CTimerEvent&)
|
||||
{
|
||||
refresh();
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ public:
|
|||
void refresh();
|
||||
|
||||
private:
|
||||
virtual void timer_event(GTimerEvent&) override;
|
||||
virtual void timer_event(CTimerEvent&) override;
|
||||
virtual void paint_event(GPaintEvent&) override;
|
||||
|
||||
GLabel* m_user_physical_pages_label { nullptr };
|
||||
|
|
|
@ -16,7 +16,7 @@ ProcessTableView::~ProcessTableView()
|
|||
{
|
||||
}
|
||||
|
||||
void ProcessTableView::timer_event(GTimerEvent&)
|
||||
void ProcessTableView::timer_event(CTimerEvent&)
|
||||
{
|
||||
model()->update();
|
||||
}
|
||||
|
|
|
@ -17,6 +17,6 @@ protected:
|
|||
virtual void model_notification(const GModelNotification&) override;
|
||||
|
||||
private:
|
||||
virtual void timer_event(GTimerEvent&) override;
|
||||
virtual void timer_event(CTimerEvent&) override;
|
||||
};
|
||||
|
||||
|
|
|
@ -726,7 +726,7 @@ bool Terminal::Line::has_only_one_background_color() const
|
|||
return true;
|
||||
}
|
||||
|
||||
void Terminal::event(GEvent& event)
|
||||
void Terminal::event(CEvent& event)
|
||||
{
|
||||
if (event.type() == GEvent::WindowBecameActive || event.type() == GEvent::WindowBecameInactive) {
|
||||
m_in_active_window = event.type() == GEvent::WindowBecameActive;
|
||||
|
|
|
@ -25,7 +25,7 @@ public:
|
|||
void apply_size_increments_to_window(GWindow&);
|
||||
|
||||
private:
|
||||
virtual void event(GEvent&) override;
|
||||
virtual void event(CEvent&) override;
|
||||
virtual void paint_event(GPaintEvent&) override;
|
||||
virtual void resize_event(GResizeEvent&) override;
|
||||
virtual void keydown_event(GKeyEvent&) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue