diff options
author | Hüseyin ASLITÜRK <asliturk@hotmail.com> | 2020-05-20 02:16:46 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-20 13:54:10 +0200 |
commit | 25227ee2842b66a176b6ca8d1657eb331dda714c (patch) | |
tree | 0f16def0dfd551282c789dcbdac857bdd04c440a | |
parent | 7fba21aefce6ce69ea9f44918a156cf3d281591c (diff) | |
download | serenity-25227ee2842b66a176b6ca8d1657eb331dda714c.zip |
LibGUI: Add MessageBox question icon
-rw-r--r-- | Libraries/LibGUI/MessageBox.cpp | 2 | ||||
-rw-r--r-- | Libraries/LibGUI/MessageBox.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/Libraries/LibGUI/MessageBox.cpp b/Libraries/LibGUI/MessageBox.cpp index fbc7f0f45b..12a9b8e5c3 100644 --- a/Libraries/LibGUI/MessageBox.cpp +++ b/Libraries/LibGUI/MessageBox.cpp @@ -71,6 +71,8 @@ RefPtr<Gfx::Bitmap> MessageBox::icon() const return Gfx::Bitmap::load_from_file("/res/icons/32x32/msgbox-warning.png"); case Type::Error: return Gfx::Bitmap::load_from_file("/res/icons/32x32/msgbox-error.png"); + case Type::Question: + return Gfx::Bitmap::load_from_file("/res/icons/32x32/msgbox-question.png"); default: return nullptr; } diff --git a/Libraries/LibGUI/MessageBox.h b/Libraries/LibGUI/MessageBox.h index e4abdab96d..243b3469e8 100644 --- a/Libraries/LibGUI/MessageBox.h +++ b/Libraries/LibGUI/MessageBox.h @@ -38,6 +38,7 @@ public: Information, Warning, Error, + Question }; enum class InputType { |