LibGUI: Add GUI::MessageBox::show_error() convenience function

This is just a wrapper around show() that puts up a standard-looking
error message.
This commit is contained in:
Andreas Kling 2020-05-13 21:11:49 +02:00
commit 14aa7f2d44
Notes: sideshowbarker 2024-07-19 06:40:09 +09:00
2 changed files with 6 additions and 0 deletions

View file

@ -50,6 +50,7 @@ public:
virtual ~MessageBox() override;
static int show(const StringView& text, const StringView& title, Type type = Type::None, InputType = InputType::OK, Window* parent_window = nullptr);
static int show_error(const StringView& text, Window* parent_window = nullptr);
private:
explicit MessageBox(const StringView& text, const StringView& title, Type type = Type::None, InputType = InputType::OK, Window* parent_window = nullptr);