Commit 0c7312e0 authored by mae's avatar mae
Browse files

if a tooltip, do as tooltip do

The fake tooltip duplication is not nice.
parent d49f1e34
...@@ -300,7 +300,8 @@ FunctionArgumentWidget::FunctionArgumentWidget(): ...@@ -300,7 +300,8 @@ FunctionArgumentWidget::FunctionArgumentWidget():
connect(downArrow, SIGNAL(clicked()), SLOT(nextPage())); connect(downArrow, SIGNAL(clicked()), SLOT(nextPage()));
setTextFormat(Qt::RichText); setTextFormat(Qt::RichText);
setMargin(1); setMargin(1 + style()->pixelMetric(QStyle::PM_ToolTipLabelFrameWidth, 0, this));
setIndent(1);
qApp->installEventFilter(this); qApp->installEventFilter(this);
} }
......
...@@ -364,7 +364,8 @@ FunctionArgumentWidget::FunctionArgumentWidget(): ...@@ -364,7 +364,8 @@ FunctionArgumentWidget::FunctionArgumentWidget():
m_popupFrame->setLayout(layout); m_popupFrame->setLayout(layout);
setTextFormat(Qt::RichText); setTextFormat(Qt::RichText);
setMargin(1); setMargin(1 + style()->pixelMetric(QStyle::PM_ToolTipLabelFrameWidth, 0, this));
setIndent(1);
qApp->installEventFilter(this); qApp->installEventFilter(this);
} }
......
...@@ -83,7 +83,6 @@ public: ...@@ -83,7 +83,6 @@ public:
setForegroundRole(QPalette::ToolTipText); setForegroundRole(QPalette::ToolTipText);
setBackgroundRole(QPalette::ToolTipBase); setBackgroundRole(QPalette::ToolTipBase);
setMargin(1 + style()->pixelMetric(QStyle::PM_ToolTipLabelFrameWidth, 0, this)); setMargin(1 + style()->pixelMetric(QStyle::PM_ToolTipLabelFrameWidth, 0, this));
setIndent(1); setIndent(1);
} }
......
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