mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:27:45 +00:00
MouseSettings: Convert setting widgets to a failable factory
This commit is contained in:
parent
ab8be9aed5
commit
90819e2d71
6 changed files with 43 additions and 13 deletions
|
@ -12,15 +12,17 @@
|
|||
#include <LibGUI/Window.h>
|
||||
|
||||
class MouseWidget final : public GUI::SettingsWindow::Tab {
|
||||
C_OBJECT(MouseWidget)
|
||||
C_OBJECT_ABSTRACT(MouseWidget)
|
||||
public:
|
||||
static ErrorOr<NonnullRefPtr<MouseWidget>> try_create();
|
||||
virtual ~MouseWidget() override = default;
|
||||
|
||||
virtual void apply_settings() override;
|
||||
virtual void reset_default_values() override;
|
||||
|
||||
private:
|
||||
MouseWidget();
|
||||
MouseWidget() = default;
|
||||
ErrorOr<void> setup();
|
||||
|
||||
void update_speed_label();
|
||||
void update_double_click_speed_label();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue