Commit 7a5872b5 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer Committed by con

Use the theme background color for panel line edits

Previously, the image used as background forced it to be white, which
made the text impossible to read when the palette foreground color
happened to be white as well.

Task-number: 258167
(cherry picked from commit 57bebee6)
parent af50cec5
src/plugins/coreplugin/images/inputfield.png

422 Bytes | W: | H:

src/plugins/coreplugin/images/inputfield.png

379 Bytes | W: | H:

src/plugins/coreplugin/images/inputfield.png
src/plugins/coreplugin/images/inputfield.png
src/plugins/coreplugin/images/inputfield.png
src/plugins/coreplugin/images/inputfield.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -474,6 +474,12 @@ void ManhattanStyle::drawPrimitive(PrimitiveElement element, const QStyleOption
case PE_PanelLineEdit:
{
painter->save();
// Fill the line edit background
QRect filledRect = option->rect.adjusted(1, 1, -1, -1);
painter->setBrushOrigin(filledRect.topLeft());
painter->fillRect(filledRect, option->palette.base());
if (option->state & State_Enabled)
drawCornerImage(d->lineeditImage, painter, option->rect, 2, 2, 2, 2);
else
......
......@@ -923,11 +923,6 @@ QList<BuildConfigWidget*> Qt4Project::subConfigWidgets()
return subWidgets;
}
/// **************************
/// Qt4ProjectBuildConfigWidget
/// **************************
void Qt4Project::collectApplicationProFiles(QList<Qt4ProFileNode *> &list, Qt4ProFileNode *node)
{
if (node->projectType() == Internal::ApplicationTemplate
......
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