summaryrefslogtreecommitdiff
path: root/Games
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-07-22 15:29:51 +0200
committerAndreas Kling <kling@serenityos.org>2020-07-23 17:31:08 +0200
commit299824de73c09885a0c4158d4aea0db0680b6333 (patch)
treee6a9088ff50e2352fab602cccdbb41480166fb6f /Games
parenta92f7aea7a92ab4d2b40ac023b891992392c6a0a (diff)
downloadserenity-299824de73c09885a0c4158d4aea0db0680b6333.zip
LibGUI: Rename GUI::Image => GUI::ImageWidget
"Image" was a bit too vague, "ImageWidget" is obviously a widget of some sort.
Diffstat (limited to 'Games')
-rw-r--r--Games/Minesweeper/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Games/Minesweeper/main.cpp b/Games/Minesweeper/main.cpp
index 8556815d89..0562bbf2c3 100644
--- a/Games/Minesweeper/main.cpp
+++ b/Games/Minesweeper/main.cpp
@@ -31,7 +31,7 @@
#include <LibGUI/Application.h>
#include <LibGUI/BoxLayout.h>
#include <LibGUI/Button.h>
-#include <LibGUI/Image.h>
+#include <LibGUI/ImageWidget.h>
#include <LibGUI/Label.h>
#include <LibGUI/Menu.h>
#include <LibGUI/MenuBar.h>
@@ -67,7 +67,7 @@ int main(int argc, char** argv)
container.set_preferred_size(0, 36);
container.set_layout<GUI::HorizontalBoxLayout>();
- auto& flag_image = container.add<GUI::Image>();
+ auto& flag_image = container.add<GUI::ImageWidget>();
flag_image.load_from_file("/res/icons/minesweeper/flag.png");
auto& flag_label = container.add<GUI::Label>();
@@ -76,7 +76,7 @@ int main(int argc, char** argv)
face_button.set_size_policy(GUI::SizePolicy::Fixed, GUI::SizePolicy::Fill);
face_button.set_preferred_size(36, 0);
- auto& time_image = container.add<GUI::Image>();
+ auto& time_image = container.add<GUI::ImageWidget>();
time_image.load_from_file("/res/icons/minesweeper/timer.png");
auto& time_label = container.add<GUI::Label>();