LibGUI: Add some missing class_name() overrides to GDialog and subclasses.

This commit is contained in:
Andreas Kling 2019-05-08 22:10:00 +02:00
parent de98b2770b
commit 364769c11c
Notes: sideshowbarker 2024-07-19 14:11:30 +09:00
4 changed files with 8 additions and 2 deletions

View file

@ -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);

View file

@ -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;

View file

@ -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;

View file

@ -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;