diff options
Diffstat (limited to 'Libraries/LibGUI/GMessageBox.h')
-rw-r--r-- | Libraries/LibGUI/GMessageBox.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Libraries/LibGUI/GMessageBox.h b/Libraries/LibGUI/GMessageBox.h index efaf9fab01..6fe2a0655b 100644 --- a/Libraries/LibGUI/GMessageBox.h +++ b/Libraries/LibGUI/GMessageBox.h @@ -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(); |