# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t; fill-column: 100 -*- # # This file is part of the LibreOffice project. # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # $(eval $(call gb_CppunitTest_CppunitTest,svx_removewhichrange)) $(eval $(call gb_CppunitTest_add_exception_objects,svx_removewhichrange, \ svx/qa/unit/removewhichrange \ )) $(eval $(call gb_CppunitTest_use_externals,svx_removewhichrange, \ boost_headers \ libxml2 \ )) $(eval $(call gb_CppunitTest_use_libraries,svx_removewhichrange, \ basegfx \ comphelper \ cppu \ cppuhelper \ docmodel \ drawinglayer \ drawinglayercore \ editeng \ fwk \ i18nlangtag \ i18nutil \ sal \ salhelper \ sax \ sb \ sfx \ sot \ svl \ svt \ tk \ tl \ ucbhelper \ utl \ vcl \ xo \ $(call gb_Helper_optional,AVMEDIA,avmedia) \ $(call gb_Helper_optional,DBCONNECTIVITY,dbtools) \ )) $(eval $(call gb_CppunitTest_use_library_objects,svx_removewhichrange, \ svxcore \ )) $(eval $(call gb_CppunitTest_use_sdk_api,svx_removewhichrange)) ifeq ($(OS),MACOSX) $(eval $(call gb_CppunitTest_use_system_darwin_frameworks,svx_removewhichrange, \ Foundation \ )) endif # vim: set noet sw=4 ts=4: that is the weld::LinkButton implementing using a native Qt widget. QLabel can be used to display a hyperlink, as it supports the HTML syntax for the text, so using , QLabel myLabel; myLabel.setText(QLatin1String("<a href=\"https://www.libreoffice.org">LibreOffice Website</a>")); can be used to let the QLabel handle a hyperlink. To make it simple to set this as needed for a QLabel, implement a new QLabel subclass called QtHyperlinkLabel that provides convenient getters and setters to set the displayed text and the link target, and takes care of setting the QLabel text based on that as needed. Implement QtInstanceLinkButton using an instance of that class as the widget and create an instance of that class in QtBuilder when encountering a "GtkLinkButton" object while processing a .ui file and evaluate the "label" and "uri" properties. Change-Id: I71d28b6e5e3cbd110ec5b3d1232d55e9d2bb8a1b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175656 Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> Tested-by: Jenkins
Add a new QtInstanceLinkButton class that is
the weld::LinkButton implementing using a native
Qt widget.

QLabel can be used to display a hyperlink, as it
supports the HTML syntax for the text, so using ,

    QLabel myLabel;
    myLabel.setText(QLatin1String("<a href=\"https://www.libreoffice.org">LibreOffice Website</a>"));

can be used to let the QLabel handle a hyperlink.

To make it simple to set this as needed for a QLabel,
implement a new QLabel subclass called QtHyperlinkLabel
that provides convenient getters and setters to set
the displayed text and the link target, and takes
care of setting the QLabel text based on that as needed.

Implement QtInstanceLinkButton using an instance
of that class as the widget and create an instance of
that class in QtBuilder when encountering a "GtkLinkButton"
object while processing a .ui file and evaluate
the "label" and "uri" properties.

Change-Id: I71d28b6e5e3cbd110ec5b3d1232d55e9d2bb8a1b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175656
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins