diff options
author | Sami Merilä <sami.merila@nokia.com> | 2009-10-26 06:52:32 (GMT) |
---|---|---|
committer | Sami Merilä <sami.merila@nokia.com> | 2009-10-26 06:52:32 (GMT) |
commit | 5476377d3bde8165e6832b7d90d5936a0154d11b (patch) | |
tree | a26cb86b7445c43f396bdcdf8e6820d6898fb7ab | |
parent | a0e6aeb31dde2c843cc9eff287627758c9b087e0 (diff) | |
download | Qt-5476377d3bde8165e6832b7d90d5936a0154d11b.zip Qt-5476377d3bde8165e6832b7d90d5936a0154d11b.tar.gz Qt-5476377d3bde8165e6832b7d90d5936a0154d11b.tar.bz2 |
Remove compilation warning from QtGui
QS60Style causes a compilation warning due to using incorrect parameter
when adjusting rect size in adjusted() call. The problematic line is
using twice same parameter and thus leaves one pre-set parameter unused,
which causes a compilation warning. Fixed by using the correct
parameter.
Task-number: N/A
Reviewed-by: Trust Me
-rw-r--r-- | src/gui/styles/qs60style.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp index 4c6bc46..8d59d14 100644 --- a/src/gui/styles/qs60style.cpp +++ b/src/gui/styles/qs60style.cpp @@ -1377,7 +1377,7 @@ void QS60Style::drawControl(ControlElement element, const QStyleOption *option, else if (vopt->viewItemPosition == QStyleOptionViewItemV4::End) yEnd = -1; } - highlightRect = option->rect.adjusted(xBeginning, yBeginning, xEnd, xBeginning); + highlightRect = option->rect.adjusted(xBeginning, yBeginning, xEnd, yEnd); } QS60StylePrivate::drawSkinElement(QS60StylePrivate::SE_ListHighlight, painter, highlightRect, flags); } |