mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:28:12 +00:00
AboutDialog: Port to GML Complier
This commit is contained in:
parent
ea59bfaae7
commit
564e619f57
4 changed files with 29 additions and 6 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include <AK/StringBuilder.h>
|
||||
#include <LibGUI/AboutDialog.h>
|
||||
#include <LibGUI/AboutDialogGML.h>
|
||||
#include <LibGUI/AboutDialogWidget.h>
|
||||
#include <LibGUI/BoxLayout.h>
|
||||
#include <LibGUI/Button.h>
|
||||
#include <LibGUI/ImageWidget.h>
|
||||
|
@ -24,8 +24,8 @@ NonnullRefPtr<AboutDialog> AboutDialog::create(String const& name, String versio
|
|||
auto dialog = adopt_ref(*new AboutDialog(name, version, icon, parent_window));
|
||||
dialog->set_title(ByteString::formatted("About {}", name));
|
||||
|
||||
auto widget = dialog->set_main_widget<Widget>();
|
||||
MUST(widget->load_from_gml(about_dialog_gml));
|
||||
auto widget = AboutDialogWidget::try_create().release_value_but_fixme_should_propagate_errors();
|
||||
dialog->set_main_widget(widget);
|
||||
|
||||
auto icon_wrapper = widget->find_descendant_of_type_named<Widget>("icon_wrapper");
|
||||
if (icon) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue