Commit d49f1e34 authored by mae's avatar mae
Browse files

use correct tooltip foreground role and drop the unnecessary auto fill

parent 8eedde33
......@@ -42,6 +42,7 @@
#include <QtGui/QScrollBar>
#include <QtGui/QLabel>
#include <QtGui/QStylePainter>
#include <QtGui/QToolTip>
#include <limits.h>
......@@ -79,9 +80,10 @@ public:
{
setFocusPolicy(Qt::NoFocus);
setAttribute(Qt::WA_DeleteOnClose);
setAutoFillBackground(true);
setForegroundRole(QPalette::ToolTipText);
setBackgroundRole(QPalette::ToolTipBase);
setMargin(1 + style()->pixelMetric(QStyle::PM_ToolTipLabelFrameWidth, 0, this));
setIndent(1);
}
......
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