Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
d49f1e34
Commit
d49f1e34
authored
Apr 09, 2010
by
mae
Browse files
use correct tooltip foreground role and drop the unnecessary auto fill
parent
8eedde33
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/texteditor/completionwidget.cpp
View file @
d49f1e34
...
@@ -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
);
set
AutoFillBackground
(
true
);
set
ForegroundRole
(
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
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment