Commit 592c2a49 authored by Jens Bache-Wiig's avatar Jens Bache-Wiig Committed by Daniel Molkentin
Browse files

Add missing hand cursor

Change-Id: If94aaa48c7ede340d7886ba8fe5be140124ab562
Reviewed-on: http://codereview.qt.nokia.com/1572

Reviewed-by: default avatarDaniel Molkentin <daniel.molkentin@nokia.com>
parent be657201
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
import QtQuick 1.0 import QtQuick 1.0
import "widgets" import "widgets"
import components 1.0 as Components
Rectangle { Rectangle {
id: root id: root
......
...@@ -46,6 +46,7 @@ Item { ...@@ -46,6 +46,7 @@ Item {
anchors.right: parent.right anchors.right: parent.right
anchors.bottomMargin: - 8 anchors.bottomMargin: - 8
anchors.leftMargin: - 8 anchors.leftMargin: - 8
anchors.rightMargin: -8
Components.TextField { Components.TextField {
placeholderText: !checkBox.checked ? qsTr("Search in Tutorials") : qsTr("Search in Tutorials, Examples and Demos") placeholderText: !checkBox.checked ? qsTr("Search in Tutorials") : qsTr("Search in Tutorials, Examples and Demos")
...@@ -100,12 +101,13 @@ Item { ...@@ -100,12 +101,13 @@ Item {
Component.onCompleted: verticalScrollBar.anchors.bottomMargin = -(scrollArea.anchors.bottomMargin + 8) Component.onCompleted: verticalScrollBar.anchors.bottomMargin = -(scrollArea.anchors.bottomMargin + 8)
} }
Rectangle{ Rectangle {
anchors.bottom: scrollArea.bottom anchors.bottom: scrollArea.bottom
height:4 height:4
anchors.left: scrollArea.left anchors.left: scrollArea.left
anchors.right: scrollArea.right anchors.right: scrollArea.right
anchors.rightMargin: scrollArea.verticalScrollBar.width anchors.rightMargin: scrollArea.verticalScrollBar.visible ?
scrollArea.verticalScrollBar.width : 0
width:parent.width width:parent.width
gradient: Gradient{ gradient: Gradient{
GradientStop{position:1 ; color:"#10000000"} GradientStop{position:1 ; color:"#10000000"}
......
...@@ -31,11 +31,15 @@ ...@@ -31,11 +31,15 @@
**************************************************************************/ **************************************************************************/
import QtQuick 1.0 import QtQuick 1.0
import components 1.0 as Components
Rectangle { Rectangle {
id: root id: root
height: Math.max(image.height-20, description.paintedHeight) + 68 height: Math.max(image.height-20, description.paintedHeight) + 68
color: "#00ffffff" color: "#00ffffff"
Components.QStyleItem { cursor: "pointinghandcursor"; anchors.fill: parent }
Item { Item {
visible: parent.state=="hover" visible: parent.state=="hover"
anchors.fill: parent anchors.fill: parent
...@@ -65,7 +69,6 @@ Rectangle { ...@@ -65,7 +69,6 @@ Rectangle {
elide: Text.ElideRight elide: Text.ElideRight
} }
RatingBar { id: rating; anchors.top: parent.top; anchors.topMargin: 10; anchors.right: parent.right; anchors.rightMargin: 10; rating: model.difficulty; visible: model.difficulty !== 0 } RatingBar { id: rating; anchors.top: parent.top; anchors.topMargin: 10; anchors.right: parent.right; anchors.rightMargin: 10; rating: model.difficulty; visible: model.difficulty !== 0 }
Image { Image {
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
**************************************************************************/ **************************************************************************/
import QtQuick 1.0 import QtQuick 1.0
import components 1.0 as Components
Row { Row {
id: tabBar id: tabBar
...@@ -45,6 +46,7 @@ Row { ...@@ -45,6 +46,7 @@ Row {
model: parent.model model: parent.model
delegate: delegate:
Item { Item {
Components.QStyleItem { cursor: "pointinghandcursor"; anchors.fill: parent }
width: tabBarWidth / tabs.count width: tabBarWidth / tabs.count
height: tabBar.height height: tabBar.height
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment