M4rtinK / tsubame

A flexible Twitter client.
GNU General Public License v3.0
2 stars 1 forks source link

Long press actions for links #87

Open M4rtinK opened 5 years ago

M4rtinK commented 5 years ago

It would be useful if long press on a link opened a quick menu:

M4rtinK commented 5 years ago

Looks like this might not be doable due to limitations of the QML Text element. There is just linkActivated that gets triggered when a link is clicked and that's it.

jkonecny12 commented 5 years ago

Thanks for investigation. Please let this open, I will try to look on a different approach if I'll be able to find some time :D

M4rtinK commented 5 years ago

Just got an idea - looks like both normal and long clicks always trigger the linkActivated signal. So theoretically if we overlaid a mouse area over the text element, we could differentiate normal and long clicks and handle linkActivated differently based on that.

jkonecny12 commented 5 years ago

Sounds nice!