mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 07:57:46 +00:00
Chess: Move ChessWidget
to the create pattern
This commit is contained in:
parent
f66098ab6f
commit
e7377c6d60
2 changed files with 9 additions and 4 deletions
|
@ -19,9 +19,11 @@
|
|||
class ChessWidget final
|
||||
: public GUI::Frame
|
||||
, public Config::Listener {
|
||||
C_OBJECT(ChessWidget);
|
||||
C_OBJECT_ABSTRACT(ChessWidget);
|
||||
|
||||
public:
|
||||
static ErrorOr<NonnullRefPtr<ChessWidget>> try_create();
|
||||
|
||||
virtual ~ChessWidget() override = default;
|
||||
|
||||
virtual void paint_event(GUI::PaintEvent&) override;
|
||||
|
@ -109,7 +111,7 @@ public:
|
|||
};
|
||||
|
||||
private:
|
||||
ChessWidget();
|
||||
ChessWidget() = default;
|
||||
|
||||
virtual void config_string_did_change(DeprecatedString const& domain, DeprecatedString const& group, DeprecatedString const& key, DeprecatedString const& value) override;
|
||||
virtual void config_bool_did_change(DeprecatedString const& domain, DeprecatedString const& group, DeprecatedString const& key, bool value) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue