mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 05:07:35 +00:00
Calculator: Utilize Button mimic_pressed
to show when keys are pressed
This commit is contained in:
parent
e8f6a650ad
commit
0d0ba375e2
2 changed files with 37 additions and 1 deletions
|
@ -26,9 +26,11 @@ private:
|
|||
void add_operation_button(GUI::Button&, Calculator::Operation);
|
||||
void add_digit_button(GUI::Button&, int digit);
|
||||
|
||||
void mimic_pressed_button(RefPtr<GUI::Button>);
|
||||
void update_display();
|
||||
|
||||
virtual void keydown_event(GUI::KeyEvent&) override;
|
||||
virtual void timer_event(Core::TimerEvent&) override;
|
||||
|
||||
Calculator m_calculator;
|
||||
Keypad m_keypad;
|
||||
|
@ -54,4 +56,6 @@ private:
|
|||
RefPtr<GUI::Button> m_inverse_button;
|
||||
RefPtr<GUI::Button> m_percent_button;
|
||||
RefPtr<GUI::Button> m_equals_button;
|
||||
|
||||
RefPtr<GUI::Button> m_mimic_pressed_button {};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue