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 @@ ...@@ -42,6 +42,7 @@
#include <QtGui/QScrollBar> #include <QtGui/QScrollBar>
#include <QtGui/QLabel> #include <QtGui/QLabel>
#include <QtGui/QStylePainter> #include <QtGui/QStylePainter>
#include <QtGui/QToolTip>
#include <limits.h> #include <limits.h>
...@@ -79,9 +80,10 @@ public: ...@@ -79,9 +80,10 @@ public:
{ {
setFocusPolicy(Qt::NoFocus); setFocusPolicy(Qt::NoFocus);
setAttribute(Qt::WA_DeleteOnClose); setAttribute(Qt::WA_DeleteOnClose);
setAutoFillBackground(true); 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