Commit e1fbdcb6 authored by Ahmad Samir's avatar Ahmad Samir Committed by Kurt Hindenburg

[TerminalDisplay] Change the mouse cursor shape back to beam on leaveEvent

Test case:
- press Ctrl and hover on a link, the mouse cursor changes to a hand,
  click the link and a browser or text editor ... etc is launched
- if you have focus stealing prevention set to low or none, the launched
  app could cover the terminal window and the mouse cursor will be stuck
  at the hand shape, even when the mouse cursor enters the konsole window
  again, until you hover on a link again

(cherry picked from commit 474886db)
parent 76776c6b
......@@ -2368,10 +2368,12 @@ void TerminalDisplay::mouseMoveEvent(QMouseEvent* ev)
void TerminalDisplay::leaveEvent(QEvent *)
{
// remove underline from an active link when cursor leaves the widget area
// remove underline from an active link when cursor leaves the widget area,
// also restore regular mouse cursor shape
if(!_mouseOverHotspotArea.isEmpty()) {
update(_mouseOverHotspotArea);
_mouseOverHotspotArea = QRegion();
setCursor(Qt::IBeamCursor);
}
}
......
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