From 17c8833c05cd1a671828a907d294f0d5a913f986 Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Wed, 29 Jun 2011 17:30:23 +0200 Subject: [PATCH] WelcomeScreen: Pointing cursor for News Change-Id: Ib327f70354296f5237e4783502329e64e02b53cd Reviewed-on: http://codereview.qt.nokia.com/890 Reviewed-by: Qt Sanity Bot Reviewed-by: Eike Ziller --- .../qtcreator/welcomescreen/widgets/NewsListing.qml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/share/qtcreator/welcomescreen/widgets/NewsListing.qml b/share/qtcreator/welcomescreen/widgets/NewsListing.qml index 7ccc33decfa..a756ef7fc3b 100644 --- a/share/qtcreator/welcomescreen/widgets/NewsListing.qml +++ b/share/qtcreator/welcomescreen/widgets/NewsListing.qml @@ -1,4 +1,5 @@ import Qt 4.7 +import "../components/" as Components Item { id: root @@ -50,10 +51,17 @@ Item { Image { id: icon; source: blogIcon; asynchronous: true } Text { id: heading2; text: blogName; font.italic: true; wrapMode: Text.WrapAtWordBoundaryOrAnywhere; textFormat: Text.RichText; width: parent.width-icon.width-5 } } - Text { id: text; text: description; wrapMode: Text.WrapAtWordBoundaryOrAnywhere; textFormat: Text.RichText ; width: parent.width-10 } + Text { + id: text; + text: description; + wrapMode: Text.WrapAtWordBoundaryOrAnywhere + textFormat: Text.RichText + width: parent.width-10 + } Text { visible: link !== ""; id: readmore; text: qsTr("Click to read more..."); font.italic: true; wrapMode: Text.WrapAtWordBoundaryOrAnywhere; textFormat: Text.RichText } } - MouseArea { anchors.fill: parent; onClicked: Qt.openUrlExternally(link); hoverEnabled: true; id: mouseArea } + Components.QStyleItem { id: styleItem; cursor: "pointinghandcursor"; anchors.fill: column } + MouseArea { anchors.fill: column; onClicked: Qt.openUrlExternally(link); hoverEnabled: true; id: mouseArea } StateGroup { id: activeState