1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 06:37:36 +00:00

LibGUI: Minor tweaks to the GUI::LinkLabel

Remove some unnecessary includes and make the constructor private.
This commit is contained in:
Andreas Kling 2020-12-26 13:07:02 +01:00
parent 5452c8a566
commit 9fe310c470
2 changed files with 7 additions and 7 deletions

View file

@ -24,19 +24,17 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <LibCore/Event.h>
#include <LibGUI/Event.h>
#include <LibGUI/LinkLabel.h>
#include <LibGUI/Painter.h>
#include <LibGUI/Window.h>
#include <LibGfx/Font.h>
#include <LibGfx/Palette.h>
#include <LibGfx/SystemTheme.h>
namespace GUI {
LinkLabel::LinkLabel(const StringView& text)
: Label(text)
LinkLabel::LinkLabel(String text)
: Label(move(text))
{
set_foreground_role(Gfx::ColorRole::Link);
}