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
commit 9fe310c470
Notes: sideshowbarker 2024-07-19 00:35:12 +09:00
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);
}