diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-05-08 22:10:00 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-05-08 22:10:00 +0200 |
commit | 364769c11c926ff610db5a483d5463fdd7ff50fb (patch) | |
tree | 7bea26614230e5496f4bd96ff5e08a441b2828f8 /LibGUI | |
parent | de98b2770bd32651e8472809dd67882ee6680808 (diff) | |
download | serenity-364769c11c926ff610db5a483d5463fdd7ff50fb.zip |
LibGUI: Add some missing class_name() overrides to GDialog and subclasses.
Diffstat (limited to 'LibGUI')
-rw-r--r-- | LibGUI/GDialog.h | 2 | ||||
-rw-r--r-- | LibGUI/GFilePicker.h | 4 | ||||
-rw-r--r-- | LibGUI/GInputBox.h | 2 | ||||
-rw-r--r-- | LibGUI/GMessageBox.h | 2 |
4 files changed, 8 insertions, 2 deletions
diff --git a/LibGUI/GDialog.h b/LibGUI/GDialog.h index 85227797f2..007f07cc59 100644 --- a/LibGUI/GDialog.h +++ b/LibGUI/GDialog.h @@ -14,6 +14,8 @@ public: int result() const { return m_result; } void done(int result); + virtual const char* class_name() const override { return "GDialog"; } + protected: explicit GDialog(CObject* parent); diff --git a/LibGUI/GFilePicker.h b/LibGUI/GFilePicker.h index c223bb7901..5e1c830ba6 100644 --- a/LibGUI/GFilePicker.h +++ b/LibGUI/GFilePicker.h @@ -1,6 +1,6 @@ -#include <LibGUI/GWindow.h> +#include <LibGUI/GDialog.h> -class GFilePicker final : public GWindow { +class GFilePicker final : public GDialog { public: GFilePicker(); virtual ~GFilePicker() override; diff --git a/LibGUI/GInputBox.h b/LibGUI/GInputBox.h index e5b70c1591..94de894040 100644 --- a/LibGUI/GInputBox.h +++ b/LibGUI/GInputBox.h @@ -12,6 +12,8 @@ public: String text_value() const { return m_text_value; } + virtual const char* class_name() const override { return "GInputBox"; } + private: void build(); String m_prompt; diff --git a/LibGUI/GMessageBox.h b/LibGUI/GMessageBox.h index 352079c7a6..5ccfcc46aa 100644 --- a/LibGUI/GMessageBox.h +++ b/LibGUI/GMessageBox.h @@ -16,6 +16,8 @@ public: static void show(const String& text, const String& title, Type type = Type::None, CObject* parent = nullptr); + virtual const char* class_name() const override { return "GMessageBox"; } + private: void build(); RetainPtr<GraphicsBitmap> icon() const; |