Adding tooltip to history actions for the ones that are too long to be displayed

This commit is contained in:
Adsooi 2021-04-08 13:04:09 +02:00
parent 6fe9e1b3a2
commit ebee780756

View file

@ -47,6 +47,8 @@ ScrollView {
flat: true flat: true
text: history.redoStack[index].getReadableString() text: history.redoStack[index].getReadableString()
ToolTip.visible: hovered
ToolTip.text: text
onClicked: { onClicked: {
history.redoMultipleDefered(history.redoCount-index) history.redoMultipleDefered(history.redoCount-index)
@ -98,6 +100,8 @@ ScrollView {
flat: true flat: true
text: history.undoStack[history.undoCount-index-1].getReadableString() text: history.undoStack[history.undoCount-index-1].getReadableString()
ToolTip.visible: hovered
ToolTip.text: text
onClicked: { onClicked: {
history.undoMultipleDefered(index+1) history.undoMultipleDefered(index+1)