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:
parent
5452c8a566
commit
9fe310c470
2 changed files with 7 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue