summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qs60style.cpp
diff options
context:
space:
mode:
authorSami Merilä <sami.merila@nokia.com>2009-12-09 13:49:47 (GMT)
committerSami Merilä <sami.merila@nokia.com>2009-12-09 13:49:47 (GMT)
commitbe927c3978347f95b7eeba53fb6750dbf7e188ec (patch)
treef770e26f22af52d14cbdab16c80fe8f8a0c229da /src/gui/styles/qs60style.cpp
parentae8a4cfa053b6976933e0d65586ef561d9a209da (diff)
downloadQt-be927c3978347f95b7eeba53fb6750dbf7e188ec.zip
Qt-be927c3978347f95b7eeba53fb6750dbf7e188ec.tar.gz
Qt-be927c3978347f95b7eeba53fb6750dbf7e188ec.tar.bz2
QS60Style: Do not let QCommonStyle draw PE_PanelScrollAreaCorner
If QS60Style lets QCommonStyle to draw PE_PanelScrollAreaCorner, common style draws transparent small rect to the end of scrollbar. This is due to our style's palette's Base is Qt::Transparent. Error is only visible when two dialogs/windows are on top of each other and their background is such that a hole in the upper dialog's background will make the hole "visible" (i.e. background is not similar). As a fix, QS60Style should not let QCommonStyle draw the primitive, but instead handle itself (and do nothing with it). Task-number: QTBUG-6657 Reviewed-by: Alessandro Portale
Diffstat (limited to 'src/gui/styles/qs60style.cpp')
-rw-r--r--src/gui/styles/qs60style.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp
index 93b517f..98f4aaf 100644
--- a/src/gui/styles/qs60style.cpp
+++ b/src/gui/styles/qs60style.cpp
@@ -2238,11 +2238,13 @@ void QS60Style::drawPrimitive(PrimitiveElement element, const QStyleOption *opti
}
break;
+ case PE_PanelScrollAreaCorner:
+ break;
+
// todo: items are below with #ifdefs "just in case". in final version, remove all non-required cases
case PE_FrameLineEdit:
case PE_IndicatorDockWidgetResizeHandle:
case PE_PanelTipLabel:
- case PE_PanelScrollAreaCorner:
#ifndef QT_NO_TABBAR
case PE_IndicatorTabTear: // No tab tear in S60