mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:47:35 +00:00
LibGUI: Rename Link => LinkLabel
This commit is contained in:
parent
788594c0c2
commit
5452c8a566
4 changed files with 15 additions and 14 deletions
|
@ -32,7 +32,7 @@
|
|||
#include <LibGUI/CheckBox.h>
|
||||
#include <LibGUI/FileIconProvider.h>
|
||||
#include <LibGUI/FilePicker.h>
|
||||
#include <LibGUI/Link.h>
|
||||
#include <LibGUI/LinkLabel.h>
|
||||
#include <LibGUI/MessageBox.h>
|
||||
#include <LibGUI/TabWidget.h>
|
||||
#include <grp.h>
|
||||
|
@ -288,7 +288,7 @@ void PropertiesDialog::make_property_value_pairs(const Vector<PropertyValuePair>
|
|||
if (!pair.link.has_value()) {
|
||||
label_container.add<GUI::Label>(pair.value).set_text_alignment(Gfx::TextAlignment::CenterLeft);
|
||||
} else {
|
||||
auto& link = label_container.add<GUI::Link>(pair.value);
|
||||
auto& link = label_container.add<GUI::LinkLabel>(pair.value);
|
||||
link.set_text_alignment(Gfx::TextAlignment::CenterLeft);
|
||||
link.on_click = [pair]() {
|
||||
Desktop::Launcher::open(pair.link.value());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue