aboutsummaryrefslogtreecommitdiff
path: root/src/corelib/widgets/mpannableviewport.h
diff options
context:
space:
mode:
authorMichal Guminiak <michal.guminiak@teleca.com>2010-09-29 15:16:54 +0200
committerSergiy Dubovik <sergiy.dubovik@nokia.com>2010-10-11 10:24:04 +0300
commit5f83acb326f0cb04ae84ece49073f67313c79601 (patch)
tree5c4d0e18b3c4528267ffe93ce7a209dc166f4db3 /src/corelib/widgets/mpannableviewport.h
parent75c1cb365618b051247cdd5a85189c8ebc39811a (diff)
Fixes: NB#194018 - MPannableViewport::setMinimumSize resets panned widget position.
RevBy: Sergiy Details: The panned widget inside pannable viewport is put into a layout. When this layout tries to move and resize the panned widget it also resets the position set by the pannable viewport. We connect a geometryChanged() signal from the panned widget and if such cases occur, we set the position to the correct one. The same slot can be used with input panel widget relocation functionality, MResizeListener is removed with this patch and the relocation code moved to the slot inside MPannableViewportPrivate.
Diffstat (limited to 'src/corelib/widgets/mpannableviewport.h')
-rw-r--r--src/corelib/widgets/mpannableviewport.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/widgets/mpannableviewport.h b/src/corelib/widgets/mpannableviewport.h
index e9e23c13..2572dcd1 100644
--- a/src/corelib/widgets/mpannableviewport.h
+++ b/src/corelib/widgets/mpannableviewport.h
@@ -193,7 +193,7 @@ private:
Q_DECLARE_PRIVATE(MPannableViewport)
Q_PRIVATE_SLOT(d_func(), void _q_resolvePannedWidgetIsOnDisplay())
Q_PRIVATE_SLOT(d_func(), void _q_positionIndicatorEnabledChanged())
- Q_PRIVATE_SLOT(d_func(), void _q_pannedWidgetResized(QGraphicsWidget *))
+ Q_PRIVATE_SLOT(d_func(), void _q_pannedWidgetGeometryChanged())
#ifdef UNIT_TEST
// Test unit is defined as a friend of production code to access private members
friend class Ut_MPannableViewport;