diff --git a/Userland/Applications/GamesSettings/CardSettingsWidget.cpp b/Userland/Applications/GamesSettings/CardSettingsWidget.cpp index 2ceabde1dd..df510c21a3 100644 --- a/Userland/Applications/GamesSettings/CardSettingsWidget.cpp +++ b/Userland/Applications/GamesSettings/CardSettingsWidget.cpp @@ -18,13 +18,13 @@ namespace GamesSettings { static constexpr StringView default_card_back_image_path = "/res/icons/cards/buggie-deck.png"sv; -class Preview final : public Cards::CardGame { - C_OBJECT_ABSTRACT(Preview) +class CardGamePreview final : public Cards::CardGame { + C_OBJECT_ABSTRACT(CardGamePreview) public: - static ErrorOr> try_create() + static ErrorOr> try_create() { - auto preview = TRY(adopt_nonnull_ref_or_enomem(new (nothrow) Preview())); + auto preview = TRY(adopt_nonnull_ref_or_enomem(new (nothrow) CardGamePreview())); Gfx::IntPoint point { 25, 30 }; TRY(preview->add_stack(point, Cards::CardStack::Type::Stock)); @@ -51,7 +51,7 @@ public: } private: - Preview() = default; + CardGamePreview() = default; virtual void paint_event(GUI::PaintEvent& event) override { @@ -73,7 +73,7 @@ CardSettingsWidget::CardSettingsWidget() auto background_color = Gfx::Color::from_string(Config::read_string("Games"sv, "Cards"sv, "BackgroundColor"sv)).value_or(Gfx::Color::from_rgb(0x008000)); - m_preview_frame = find_descendant_of_type_named("cards_preview"); + m_preview_frame = find_descendant_of_type_named("cards_preview"); m_preview_frame->set_background_color(background_color); m_background_color_input = find_descendant_of_type_named("cards_background_color"); @@ -136,4 +136,4 @@ DeprecatedString CardSettingsWidget::card_back_image_path() const } -REGISTER_WIDGET(GamesSettings, Preview); +REGISTER_WIDGET(GamesSettings, CardGamePreview); diff --git a/Userland/Applications/GamesSettings/CardSettingsWidget.gml b/Userland/Applications/GamesSettings/CardSettingsWidget.gml index bd4c061748..8b15195fc0 100644 --- a/Userland/Applications/GamesSettings/CardSettingsWidget.gml +++ b/Userland/Applications/GamesSettings/CardSettingsWidget.gml @@ -4,7 +4,7 @@ margins: [8] } - @GamesSettings::Preview { + @GamesSettings::CardGamePreview { name: "cards_preview" fill_with_background_color: true fixed_height: 160 diff --git a/Userland/Applications/GamesSettings/CardSettingsWidget.h b/Userland/Applications/GamesSettings/CardSettingsWidget.h index f0a6761733..001e41ca2e 100644 --- a/Userland/Applications/GamesSettings/CardSettingsWidget.h +++ b/Userland/Applications/GamesSettings/CardSettingsWidget.h @@ -15,7 +15,7 @@ namespace GamesSettings { -class Preview; +class CardGamePreview; class CardSettingsWidget final : public GUI::SettingsWindow::Tab { C_OBJECT(CardSettingsWidget) @@ -31,7 +31,7 @@ private: bool set_card_back_image_path(DeprecatedString const&); DeprecatedString card_back_image_path() const; - RefPtr m_preview_frame; + RefPtr m_preview_frame; RefPtr m_background_color_input; RefPtr m_card_back_image_view;