From b4d79d2d25e4cde2043eb83dbb36f9d1724e3833 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Fri, 2 Mar 2012 12:08:05 +0100 Subject: [PATCH] WelcomePage: fix mouse area for sessions Change-Id: I805ee99e075fe4873ce98ae5683729e806010ff8 Reviewed-by: Christiaan Janssen --- share/qtcreator/welcomescreen/widgets/LinkedText.qml | 4 +++- share/qtcreator/welcomescreen/widgets/SessionItem.qml | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/share/qtcreator/welcomescreen/widgets/LinkedText.qml b/share/qtcreator/welcomescreen/widgets/LinkedText.qml index 8393d05f89d..5ed81eff7fc 100644 --- a/share/qtcreator/welcomescreen/widgets/LinkedText.qml +++ b/share/qtcreator/welcomescreen/widgets/LinkedText.qml @@ -53,6 +53,8 @@ Text { mouseArea.state = "" } + property bool enlargeMouseArea: true + CustomFonts { id: fonts } @@ -87,7 +89,7 @@ Text { MouseArea { id: mouseArea anchors.fill: parent - anchors.margins: -8 + anchors.margins: enlargeMouseArea ? -8 : 0 hoverEnabled: true QStyleItem { cursor: "pointinghandcursor"; anchors.fill: parent } diff --git a/share/qtcreator/welcomescreen/widgets/SessionItem.qml b/share/qtcreator/welcomescreen/widgets/SessionItem.qml index 49e024aab03..2e14d261040 100644 --- a/share/qtcreator/welcomescreen/widgets/SessionItem.qml +++ b/share/qtcreator/welcomescreen/widgets/SessionItem.qml @@ -68,6 +68,8 @@ Item { width: delegate.ListView.view.width - 80 elide: Text.ElideRight + enlargeMouseArea: false + Rectangle { z: -4 color: "#f9f9f9"