mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:48:11 +00:00
LibGUI: Remove public getter Button::is_mimic_pressed()
This method shouldn't be used outside the class and having a getter for a bool seems a bit overkill.
This commit is contained in:
parent
56ceb6a106
commit
c15a7b79ef
2 changed files with 2 additions and 3 deletions
|
@ -57,7 +57,7 @@ void Button::paint_event(PaintEvent& event)
|
|||
Painter painter(*this);
|
||||
painter.add_clip_rect(event.rect());
|
||||
|
||||
bool paint_pressed = is_being_pressed() || is_mimic_pressed() || (m_menu && m_menu->is_visible());
|
||||
bool paint_pressed = is_being_pressed() || m_mimic_pressed || (m_menu && m_menu->is_visible());
|
||||
|
||||
Gfx::StylePainter::paint_button(painter, rect(), palette(), m_button_style, paint_pressed, is_hovered(), is_checked(), is_enabled(), is_focused(), is_default() && !another_button_has_focus());
|
||||
|
||||
|
@ -260,7 +260,7 @@ void Button::set_mimic_pressed(bool mimic_pressed)
|
|||
|
||||
void Button::timer_event(Core::TimerEvent&)
|
||||
{
|
||||
if (is_mimic_pressed()) {
|
||||
if (m_mimic_pressed) {
|
||||
m_mimic_pressed = false;
|
||||
|
||||
update();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue