summaryrefslogtreecommitdiffstats
path: root/src/gui/styles
diff options
context:
space:
mode:
authorSami Merila <sami.merila@nokia.com>2010-07-02 12:40:06 (GMT)
committerSami Merila <sami.merila@nokia.com>2010-07-02 12:40:06 (GMT)
commit844832295daa5e515298142892ed9957ce7659a3 (patch)
tree61ef6eb761f30173a682e6b37b3bfabba4ec78df /src/gui/styles
parente5bd34ac642bf7665f618e5e2ce5f62cfb29fb73 (diff)
downloadQt-844832295daa5e515298142892ed9957ce7659a3.zip
Qt-844832295daa5e515298142892ed9957ce7659a3.tar.gz
Qt-844832295daa5e515298142892ed9957ce7659a3.tar.bz2
QS60Style: Remove gap from QProgressDialog
When showing a progressDialog with QS60Style, there is a strange empty area after the QProgressbar. This is reserved for label even if it is not showing one. Reviewed-by: Alessandro Portale
Diffstat (limited to 'src/gui/styles')
-rw-r--r--src/gui/styles/qs60style.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp
index 45bcc00..7af0224 100644
--- a/src/gui/styles/qs60style.cpp
+++ b/src/gui/styles/qs60style.cpp
@@ -3116,6 +3116,11 @@ QRect QS60Style::subElementRect(SubElement element, const QStyleOption *opt, con
case SE_CheckBoxFocusRect:
ret = opt->rect;
break;
+ case SE_ProgressBarLabel:
+ case SE_ProgressBarContents:
+ case SE_ProgressBarGroove:
+ ret = opt->rect;
+ break;
default:
ret = QCommonStyle::subElementRect(element, opt, widget);
}