Commit f9a2e475 authored by Eric Armbruster's avatar Eric Armbruster 🍁 Committed by Christoph Cullmann
Browse files

Remove heavy frames around tooltips

It looks lighter and does not distract the eye towards the edges.
parent 84d67614
Pipeline #256605 canceled with stage
in 10 minutes and 42 seconds
......@@ -147,7 +147,7 @@ public:
setWindowFlags(Qt::FramelessWindowHint | Qt::BypassGraphicsProxyWidget | Qt::ToolTip);
setWordWrapMode(QTextOption::NoWrap);
document()->setDocumentMargin(10);
setFrameStyle(QFrame::Box | QFrame::Raised);
setFrameStyle(QFrame::NoFrame);
setOpenLinks(false);
connect(&m_hideTimer, &QTimer::timeout, this, &Private::hideTooltip);
......
......@@ -74,7 +74,7 @@ public:
setWindowFlags(Qt::FramelessWindowHint | Qt::BypassGraphicsProxyWidget | Qt::ToolTip);
setAttribute(Qt::WA_DeleteOnClose, true);
document()->setDocumentMargin(5);
setFrameStyle(QFrame::Box | QFrame::Raised);
setFrameStyle(QFrame::NoFrame);
connect(&m_hideTimer, &QTimer::timeout, this, &Tooltip::hideTooltip);
setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
......
Supports Markdown
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