|
@@ -9,7 +9,7 @@
|
|
#include <LibGUI/ImageWidget.h>
|
|
#include <LibGUI/ImageWidget.h>
|
|
#include <LibGUI/Label.h>
|
|
#include <LibGUI/Label.h>
|
|
#include <LibGUI/PasswordInputDialog.h>
|
|
#include <LibGUI/PasswordInputDialog.h>
|
|
-#include <LibGUI/PasswordInputDialogGML.h>
|
|
|
|
|
|
+#include <LibGUI/PasswordInputDialogWidget.h>
|
|
#include <LibGUI/TextBox.h>
|
|
#include <LibGUI/TextBox.h>
|
|
|
|
|
|
namespace GUI {
|
|
namespace GUI {
|
|
@@ -23,8 +23,8 @@ PasswordInputDialog::PasswordInputDialog(Window* parent_window, ByteString title
|
|
resize(340, 122);
|
|
resize(340, 122);
|
|
set_title(move(title));
|
|
set_title(move(title));
|
|
|
|
|
|
- auto widget = set_main_widget<Widget>();
|
|
|
|
- widget->load_from_gml(password_input_dialog_gml).release_value_but_fixme_should_propagate_errors();
|
|
|
|
|
|
+ auto widget = PasswordInputDialogWidget::try_create().release_value_but_fixme_should_propagate_errors();
|
|
|
|
+ set_main_widget(widget);
|
|
|
|
|
|
auto& key_icon = *widget->find_descendant_of_type_named<GUI::ImageWidget>("key_icon");
|
|
auto& key_icon = *widget->find_descendant_of_type_named<GUI::ImageWidget>("key_icon");
|
|
|
|
|