diff options
author | Gunnar Sletta <gunnar@trolltech.com> | 2009-11-06 11:59:24 (GMT) |
---|---|---|
committer | Gunnar Sletta <gunnar@trolltech.com> | 2009-11-06 11:59:24 (GMT) |
commit | e9296e1ffa476e18e12dd526e2e80e9850db0e71 (patch) | |
tree | 91491e89e34ccb7ac8c319df9b5c12b99b2ee77b /src | |
parent | 00d078d947fd045d2aaf4f22afd4df180696cfac (diff) | |
parent | 9b500e9a09907f05002bd0e57869c5312ae101db (diff) | |
download | Qt-e9296e1ffa476e18e12dd526e2e80e9850db0e71.zip Qt-e9296e1ffa476e18e12dd526e2e80e9850db0e71.tar.gz Qt-e9296e1ffa476e18e12dd526e2e80e9850db0e71.tar.bz2 |
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt-graphics-team into 4.6
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/painting/qpainter.cpp | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp index 4c13d3e..48629d1 100644 --- a/src/gui/painting/qpainter.cpp +++ b/src/gui/painting/qpainter.cpp @@ -3787,27 +3787,14 @@ void QPainter::setPen(const QPen &pen) if (d->state->pen == pen) return; + d->state->pen = pen; + if (d->extended) { - d->state->pen = pen; d->checkEmulation(); d->extended->penChanged(); return; } - // Do some checks to see if we are the same pen. - Qt::PenStyle currentStyle = d->state->pen.style(); - if (currentStyle == pen.style() && currentStyle != Qt::CustomDashLine) { - if (currentStyle == Qt::NoPen || - (d->state->pen.isSolid() && pen.isSolid() - && d->state->pen.color() == pen.color() - && d->state->pen.widthF() == pen.widthF() - && d->state->pen.capStyle() == pen.capStyle() - && d->state->pen.joinStyle() == pen.joinStyle() - && d->state->pen.isCosmetic() == pen.isCosmetic())) - return; - } - - d->state->pen = pen; d->state->dirtyFlags |= QPaintEngine::DirtyPen; } |