summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qplastiquestyle.cpp
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2009-09-21 13:32:51 (GMT)
committerGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2009-09-21 14:00:27 (GMT)
commit423cbcf1a26ce208d5440ffa0c7cd150ccfd8b3a (patch)
treefe3827e865c3bee03c41287d99ffffc474223cb6 /src/gui/styles/qplastiquestyle.cpp
parent5759ee3ef9eea0a1ea06efd4c349ef7ecc35ab5e (diff)
downloadQt-423cbcf1a26ce208d5440ffa0c7cd150ccfd8b3a.zip
Qt-423cbcf1a26ce208d5440ffa0c7cd150ccfd8b3a.tar.gz
Qt-423cbcf1a26ce208d5440ffa0c7cd150ccfd8b3a.tar.bz2
When using Plastique style, changing the background style sheet property of a
spinbox wouldn't set the correct background for the embedded line edit. Reviewed-by: Olivier Task-number: 232085 Task-number: QTBUG-3013
Diffstat (limited to 'src/gui/styles/qplastiquestyle.cpp')
-rw-r--r--src/gui/styles/qplastiquestyle.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/styles/qplastiquestyle.cpp b/src/gui/styles/qplastiquestyle.cpp
index 0b2d6a7..5052755 100644
--- a/src/gui/styles/qplastiquestyle.cpp
+++ b/src/gui/styles/qplastiquestyle.cpp
@@ -1056,7 +1056,8 @@ void QPlastiqueStylePrivate::drawPartialFrame(QPainter *painter, const QStyleOpt
frameOpt.rect.adjust(reverse ? -2 : 0, 0, reverse ? 0 : 2, 0);
frameOpt.lineWidth = q->pixelMetric(QStyle::PM_DefaultFrameWidth);
frameOpt.midLineWidth = 0;
- frameOpt.state |= QStyle::State_Sunken;
+ frameOpt.state = option->state | QStyle::State_Sunken;
+ frameOpt.palette = option->palette;
q->drawPrimitive(QStyle::PE_PanelLineEdit, &frameOpt, painter, widget);
painter->restore();