mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-06 07:23:08 +02:00
show add to favorites on clicking star
This commit is contained in:
parent
bd48ff9ee6
commit
4d2a37aff2
1 changed files with 13 additions and 14 deletions
|
@ -135,7 +135,6 @@ Rectangle {
|
|||
|
||||
Row {
|
||||
id: star
|
||||
|
||||
anchors.top: parent.top
|
||||
anchors.topMargin: 119
|
||||
anchors.left: avatarImage.right
|
||||
|
@ -153,10 +152,12 @@ Rectangle {
|
|||
TextStyle5 {
|
||||
text: isAvatarInFavorites ? avatarName : "Add to Favorites"
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
enabled: !isAvatarInFavorites
|
||||
anchors.fill: parent
|
||||
anchors.fill: star
|
||||
onClicked: {
|
||||
console.debug('selectedAvatar.url', selectedAvatar.url)
|
||||
createFavorite.onSaveClicked = function() {
|
||||
|
@ -168,8 +169,6 @@ Rectangle {
|
|||
createFavorite.open(selectedAvatar);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TextStyle3 {
|
||||
id: avatarNameLabel
|
||||
|
|
Loading…
Reference in a new issue