GUI2/Scroll Label: removed custom click handler

This was only added for the storyscreen, which can be handled instead by registering the click handle directly.
This commit is contained in:
Charles Dang 2024-05-24 21:20:20 -04:00
parent 8a0a1ac539
commit ab3fc34f5c
2 changed files with 0 additions and 11 deletions

View file

@ -49,11 +49,6 @@ scroll_label::scroll_label(const implementation::builder_scroll_label& builder)
event::dispatcher::back_pre_child);
}
void scroll_label::connect_signal_left_click(std::function<void()> click_handler)
{
click_handler_ = click_handler;
}
label* scroll_label::get_internal_label()
{
if(content_grid()) {
@ -162,8 +157,6 @@ void scroll_label::signal_handler_left_button_down(const event::ui_event event)
DBG_GUI_E << LOG_HEADER << ' ' << event << ".";
get_window()->keyboard_capture(this);
click_handler_();
}
// }---------- DEFINITION ---------{

View file

@ -75,8 +75,6 @@ public:
}
}
void connect_signal_left_click(std::function<void()> click_handler);
private:
/**
* Possible states of the widget.
@ -105,8 +103,6 @@ private:
bool link_aware_;
std::function<void()> click_handler_;
void finalize_subclass() override;
label* get_internal_label();