1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:47:46 +00:00

LibGUI: Rename GUI::Image => GUI::ImageWidget

"Image" was a bit too vague, "ImageWidget" is obviously a widget of
some sort.
This commit is contained in:
Andreas Kling 2020-07-22 15:29:51 +02:00
parent a92f7aea7a
commit 299824de73
15 changed files with 41 additions and 41 deletions

View file

@ -26,7 +26,7 @@
#include "ClipboardHistoryModel.h"
#include <LibGUI/Application.h>
#include <LibGUI/Image.h>
#include <LibGUI/ImageWidget.h>
#include <LibGUI/TableView.h>
#include <LibGUI/Window.h>
#include <stdio.h>
@ -76,7 +76,7 @@ int main(int argc, char* argv[])
auto applet_window = GUI::Window::construct();
applet_window->set_title("ClipboardHistory");
applet_window->set_window_type(GUI::WindowType::MenuApplet);
auto& icon = applet_window->set_main_widget<GUI::Image>();
auto& icon = applet_window->set_main_widget<GUI::ImageWidget>();
icon.load_from_file("/res/icons/clipboard.png");
icon.set_fill_with_background_color(true);
icon.on_click = [& main_window = *main_window] {