diff options
author | Sami Merila <sami.merila@nokia.com> | 2010-02-15 06:46:25 (GMT) |
---|---|---|
committer | Sami Merila <sami.merila@nokia.com> | 2010-02-15 06:46:25 (GMT) |
commit | 35f993eaa233f4729118eb796554b0ccce85b67e (patch) | |
tree | af75f5b5e1561a056eb27f3986bd0f79365f5556 /src/gui | |
parent | 995afbfc2ca81960ca840f50b2a837938a4f1d52 (diff) | |
download | Qt-35f993eaa233f4729118eb796554b0ccce85b67e.zip Qt-35f993eaa233f4729118eb796554b0ccce85b67e.tar.gz Qt-35f993eaa233f4729118eb796554b0ccce85b67e.tar.bz2 |
Remove scrollbar context menu from QS60Style
Currently style does not forbid scrollbar context menu, so by default
long pressing over the scrollbar widget shows the context menu. This is
not according to 'S60-style', so from now on the stylehint
SH_ScrollBar_ContextMenu returns false.
Task-number: QTBUG-8194
Reviewed-by: Alessandro Portale
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/styles/qs60style.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp index 14e9b95..7372c3c 100644 --- a/src/gui/styles/qs60style.cpp +++ b/src/gui/styles/qs60style.cpp @@ -2481,6 +2481,9 @@ int QS60Style::styleHint(StyleHint sh, const QStyleOption *opt, const QWidget *w case SH_FormLayoutWrapPolicy: retValue = QFormLayout::WrapLongRows; break; + case SH_ScrollBar_ContextMenu: + retValue = false; + break; default: retValue = QCommonStyle::styleHint(sh, opt, widget, hret); break; |