mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:38:11 +00:00
GMessageBox: Hide the constructor and fix broken usages
We no longer support creating CObjects on the stack. Use construct().
This commit is contained in:
parent
c5e057438c
commit
1a279c5b2a
3 changed files with 5 additions and 5 deletions
|
@ -17,12 +17,13 @@ public:
|
|||
OKCancel,
|
||||
};
|
||||
|
||||
explicit GMessageBox(const StringView& text, const StringView& title, Type type = Type::None, InputType = InputType::OK, CObject* parent = nullptr);
|
||||
virtual ~GMessageBox() override;
|
||||
|
||||
static int show(const StringView& text, const StringView& title, Type type = Type::None, InputType = InputType::OK, CObject* parent = nullptr);
|
||||
|
||||
private:
|
||||
explicit GMessageBox(const StringView& text, const StringView& title, Type type = Type::None, InputType = InputType::OK, CObject* parent = nullptr);
|
||||
|
||||
bool should_include_ok_button() const;
|
||||
bool should_include_cancel_button() const;
|
||||
void build();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue