summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin T. H. Sandsmark <[email protected]>2016-07-07 20:54:02 +0200
committerMartin T. H. Sandsmark <[email protected]>2016-07-07 20:54:02 +0200
commit9de6cc7e47866779c43fe79ef17b9cea52bdcb62 (patch)
tree2e1206fbb483a4b276e1a7ccd0414ead3136c17e
parent7592e8947fde4842a8fe966ec6b9e3fb2c8ccd3b (diff)
Underline links when showing URL hint
-rw-r--r--src/TerminalDisplay.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/TerminalDisplay.cpp b/src/TerminalDisplay.cpp
index a6ac56e..d756722 100644
--- a/src/TerminalDisplay.cpp
+++ b/src/TerminalDisplay.cpp
@@ -1429,7 +1429,7 @@ void TerminalDisplay::paintFilters(QPainter& painter)
const int baseline = r.bottom() - metrics.descent();
// find the position of the underline below that
const int underlinePos = baseline + metrics.underlinePos();
- if (region.contains(mapFromGlobal(QCursor::pos()))) {
+ if (_showUrlHint || region.contains(mapFromGlobal(QCursor::pos()))) {
painter.drawLine(r.left() , underlinePos ,
r.right() , underlinePos);
}