summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget_win.cpp
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-08-05 14:25:08 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-08-06 09:56:44 (GMT)
commit1a97230e908193c9a260ae68635301c0e9f9f8de (patch)
tree21480e205039bb9ff3095609c0f13218027d13e1 /src/gui/kernel/qwidget_win.cpp
parentd90f1e4ff7a077daf59f5f035cf6744fe732f843 (diff)
downloadQt-1a97230e908193c9a260ae68635301c0e9f9f8de.zip
Qt-1a97230e908193c9a260ae68635301c0e9f9f8de.tar.gz
Qt-1a97230e908193c9a260ae68635301c0e9f9f8de.tar.bz2
Changed setting state in a QGesture
Instead of having a protected setter for the state and forcing the application developer to emit signals manually (which leads to misunderstanding - i.e. if the started() signal should be emitted only once, or of the triggered() signal should be emitted before the finished() signal, etc). So I've added an protected updateState(state) function that sets the internal state and emits appropriate signals depending on the old and new states. Reviewed-by: Volker Hilsheimer Reviewed-by: Richard Moe Gustavsen
Diffstat (limited to 'src/gui/kernel/qwidget_win.cpp')
-rw-r--r--src/gui/kernel/qwidget_win.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget_win.cpp b/src/gui/kernel/qwidget_win.cpp
index ce853d2..6647f3f 100644
--- a/src/gui/kernel/qwidget_win.cpp
+++ b/src/gui/kernel/qwidget_win.cpp
@@ -2074,6 +2074,8 @@ void QWidgetPrivate::winSetupGestures()
needv = (vbarpolicy == Qt::ScrollBarAlwaysOn
|| (vbarpolicy == Qt::ScrollBarAsNeeded && vbar->minimum() < vbar->maximum()));
singleFingerPanEnabled = asa->d_func()->singleFingerPanEnabled;
+ } else {
+ winid = q->winId();
}
if (qAppPriv->SetGestureConfig) {
GESTURECONFIG gc[2];