mirror of
https://github.com/lubosz/overte.git
synced 2025-04-10 04:52:17 +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,21 +152,21 @@ Rectangle {
|
|||
TextStyle5 {
|
||||
text: isAvatarInFavorites ? avatarName : "Add to Favorites"
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
enabled: !isAvatarInFavorites
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
console.debug('selectedAvatar.url', selectedAvatar.url)
|
||||
createFavorite.onSaveClicked = function() {
|
||||
selectedAvatar.favorite = true;
|
||||
pageOfAvatars.setProperty(view.currentIndex, 'favorite', selectedAvatar.favorite)
|
||||
createFavorite.close();
|
||||
}
|
||||
|
||||
createFavorite.open(selectedAvatar);
|
||||
}
|
||||
MouseArea {
|
||||
enabled: !isAvatarInFavorites
|
||||
anchors.fill: star
|
||||
onClicked: {
|
||||
console.debug('selectedAvatar.url', selectedAvatar.url)
|
||||
createFavorite.onSaveClicked = function() {
|
||||
selectedAvatar.favorite = true;
|
||||
pageOfAvatars.setProperty(view.currentIndex, 'favorite', selectedAvatar.favorite)
|
||||
createFavorite.close();
|
||||
}
|
||||
|
||||
createFavorite.open(selectedAvatar);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue