mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-11 17:00:37 +00:00
LibGUI: Add some missing class_name() overrides to GDialog and subclasses.
This commit is contained in:
parent
de98b2770b
commit
364769c11c
Notes:
sideshowbarker
2024-07-19 14:11:30 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/364769c11c9
4 changed files with 8 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue