Commit 2ec053b7 authored by Robert Lancaster's avatar Robert Lancaster Committed by Jasem Mutlaq

I found that one of the Text items in Whats Interesting was stealing the mouse...

I found that one of the Text items in Whats Interesting was stealing the mouse hover events that was supposed to turn it yellow when you hover over it.  So I added another mouse area inside the mouse area to capture those mouse hover events.  This patch will apply that change.
parent 7b3e6464
......@@ -782,7 +782,7 @@ Rectangle {
Rectangle{
id: summaryBackground
color: (mouseListArea.containsMouse||mouseImgArea.containsMouse) ? "#030723" : "transparent"
color: (mouseListArea.containsMouse||mouseImgArea.containsMouse||mouseTextArea.containsMouse) ? "#030723" : "transparent"
width: parent.width
height: parent.height
MouseArea {
......@@ -802,13 +802,24 @@ Rectangle {
textFormat: Text.RichText
x: image.width + 5
width: parent.width - image.width - 30
color: (nightVision.state == "active" && soListItem.ListView.isCurrentItem) ? "#F89404" : (nightVision.state == "active") ? "red" : (soListItem.ListView.isCurrentItem) ? "white" : (mouseListArea.containsMouse||mouseImgArea.containsMouse) ? "yellow" : "gray"
color: (nightVision.state == "active" && soListItem.ListView.isCurrentItem) ? "#F89404" : (nightVision.state == "active") ? "red" : (soListItem.ListView.isCurrentItem) ? "white" : (mouseListArea.containsMouse||mouseImgArea.containsMouse||mouseTextArea.containsMouse) ? "yellow" : "gray"
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
font{
family: "Cantarell"
pixelSize: 13
}
MouseArea {
id: mouseTextArea
anchors.fill: parent
hoverEnabled: true
onClicked: {
soListView.currentIndex = index
soListView.soListItemClicked(soListView.currentIndex)
skyObjView.flipped = true
}
}//Mousearea
}
}
Image {
......@@ -831,7 +842,7 @@ Rectangle {
id: dispText
objectName: dispName
text: dispName
color: (nightVision.state == "active" && soListItem.ListView.isCurrentItem) ? "#F89404" : (nightVision.state == "active") ? "red" : (mouseListArea.containsMouse) ? "yellow" : "white"
color: (nightVision.state == "active" && soListItem.ListView.isCurrentItem) ? "#F89404" : (nightVision.state == "active") ? "red" : (mouseListArea.containsMouse||mouseImgArea.containsMouse||mouseTextArea.containsMouse) ? "yellow" : "white"
font.bold: true
}
......
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