mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-02 19:37:25 -04:00
Cursor pointer on link hover for richtexts
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
||||||
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
import QtQuick 2.0
|
import QtQuick 2.5
|
||||||
import QtQuick.Layouts 1.1
|
import QtQuick.Layouts 1.1
|
||||||
|
|
||||||
import "../components" as MoneroComponents
|
import "../components" as MoneroComponents
|
||||||
@@ -43,6 +43,7 @@ Item {
|
|||||||
property string fontFamily: ""
|
property string fontFamily: ""
|
||||||
property alias wrapMode: label.wrapMode
|
property alias wrapMode: label.wrapMode
|
||||||
property alias horizontalAlignment: label.horizontalAlignment
|
property alias horizontalAlignment: label.horizontalAlignment
|
||||||
|
property alias hoveredLink: label.hoveredLink
|
||||||
signal linkActivated()
|
signal linkActivated()
|
||||||
height: label.height * scaleRatio
|
height: label.height * scaleRatio
|
||||||
width: label.width * scaleRatio
|
width: label.width * scaleRatio
|
||||||
|
|||||||
@@ -43,4 +43,10 @@ Label {
|
|||||||
color: MoneroComponents.Style.dividerColor
|
color: MoneroComponents.Style.dividerColor
|
||||||
opacity: MoneroComponents.Style.dividerOpacity
|
opacity: MoneroComponents.Style.dividerOpacity
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
acceptedButtons: Qt.NoButton
|
||||||
|
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user