summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@nokia.com>2009-08-13 07:59:05 (GMT)
committerThomas Hartmann <Thomas.Hartmann@nokia.com>2009-08-13 08:00:44 (GMT)
commitff14068a565396789bf43d4fbc752a643ebcb357 (patch)
tree32e1add8ddc42af87e362bfb48ecc473653c4287
parent82d0395ad1ef78eee67ebfe74e8976e620f82356 (diff)
downloadQt-ff14068a565396789bf43d4fbc752a643ebcb357.zip
Qt-ff14068a565396789bf43d4fbc752a643ebcb357.tar.gz
Qt-ff14068a565396789bf43d4fbc752a643ebcb357.tar.bz2
fix tab and hold for Windows CE and scrollbars
Task-number: 258378 Reviewed-by: Maurice
-rw-r--r--src/gui/widgets/qscrollbar.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/widgets/qscrollbar.cpp b/src/gui/widgets/qscrollbar.cpp
index 390d1b8..37525e2 100644
--- a/src/gui/widgets/qscrollbar.cpp
+++ b/src/gui/widgets/qscrollbar.cpp
@@ -431,6 +431,12 @@ void QScrollBarPrivate::init()
q->setSizePolicy(sp);
q->setAttribute(Qt::WA_WState_OwnSizePolicy, false);
q->setAttribute(Qt::WA_OpaquePaintEvent);
+
+#if !defined(QT_NO_CONTEXTMENU) && defined(Q_WS_WINCE)
+ if (!q->style()->styleHint(QStyle::SH_ScrollBar_ContextMenu, 0, q)) {
+ q->setContextMenuPolicy(Qt::PreventContextMenu);
+ }
+#endif
}
#ifndef QT_NO_CONTEXTMENU