mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-08 12:19:37 +03:00
e38b454e11
It needed some updating to the new ref-counted CObject ways.
22 lines
549 B
C++
22 lines
549 B
C++
#pragma once
|
|
|
|
#include <LibGUI/GDialog.h>
|
|
|
|
class GAboutDialog final : public GDialog {
|
|
C_OBJECT(GAboutDialog)
|
|
public:
|
|
virtual ~GAboutDialog() override;
|
|
|
|
static void show(const StringView& name, const GraphicsBitmap* icon = nullptr, CObject* parent = nullptr)
|
|
{
|
|
auto dialog = GAboutDialog::construct(name, icon, parent);
|
|
dialog->exec();
|
|
}
|
|
|
|
private:
|
|
GAboutDialog(const StringView& name, const GraphicsBitmap* icon = nullptr, CObject* parent = nullptr);
|
|
|
|
String m_name;
|
|
RefPtr<GraphicsBitmap> m_icon;
|
|
};
|