Commit Graph

41 Commits

Author SHA1 Message Date
Aaron J. Seigo
fc92307f06 ssssh
svn path=/trunk/KDE/kdelibs/; revision=1153771
2010-07-24 00:52:37 +00:00
Marco Martin
ce3762373f add an explicit way to stop
svn path=/trunk/KDE/kdelibs/; revision=1094245
2010-02-22 11:21:30 +00:00
Marco Martin
2b9a4f4e63 when a moveevent occurs, is not by the animation, that sets the geometry instead, so we can safely use it to notice when somebody else has moved the contents by had. is really important in this case to immediately stop the animation
svn path=/trunk/KDE/kdelibs/; revision=1094135
2010-02-22 09:36:20 +00:00
John Layt
6e9943e36c krazy fixes, mostly include guards and copyright tags
svn path=/trunk/KDE/kdelibs/; revision=1066779
2009-12-27 22:16:11 +00:00
Marco Martin
fdae3f0d59 This patch forward the "stateChanged" signal emitted from the private kinetic scroll animation all the way to Plasma::ScrollWidget, which then forwards this signal to its childs. This enables an object which derives from Plasma::ScrollWidget to know the kinetic scrolling animation state.
Patch by Bruno Abinader

svn path=/trunk/KDE/kdelibs/; revision=1064768
2009-12-21 18:36:39 +00:00
Marco Martin
ac7e75f460 unfortunately this has to be disabled since blocks clicks on webview :/
svn path=/trunk/KDE/kdelibs/; revision=1059153
2009-12-05 22:18:15 +00:00
Alexis Ménard
4493bbd4f7 ARM compile++
qreal is float on ARM.

svn path=/trunk/KDE/kdelibs/; revision=1057466
2009-12-02 14:17:34 +00:00
Marco Martin
3b7483877d if the widget can't scroll neither up or down, don't attempt to bounce
svn path=/trunk/KDE/kdelibs/; revision=1051560
2009-11-19 19:55:54 +00:00
Igor Trindade Oliveira
e1b3fb48a7 fix scrollAnimation parent
svn path=/trunk/KDE/kdelibs/; revision=1051528
2009-11-19 18:18:55 +00:00
Igor Trindade Oliveira
7468dea5da fix disconnect
svn path=/trunk/KDE/kdelibs/; revision=1051480
2009-11-19 15:25:25 +00:00
Marco Martin
62fb0d35ce s/viewportGeometry/contentsSize/
svn path=/trunk/KDE/kdelibs/; revision=1051071
2009-11-18 19:55:59 +00:00
Igor Trindade Oliveira
af17b151d4 fix regression: make vertical and horizontal wheel event works again
svn path=/trunk/KDE/kdelibs/; revision=1051064
2009-11-18 19:30:56 +00:00
Igor Trindade Oliveira
939c85aafb clean ups: remove warnings and constify
svn path=/trunk/KDE/kdelibs/; revision=1051044
2009-11-18 17:59:56 +00:00
Igor Trindade Oliveira
d0ddbe7b21 port kineticscrolling to Qt 4.6
svn path=/trunk/KDE/kdelibs/; revision=1051040
2009-11-18 17:35:50 +00:00
Marco Martin
862fb4cb70 manage touch events
svn path=/trunk/KDE/kdelibs/; revision=1050580
2009-11-17 17:34:27 +00:00
Marco Martin
377e6bf9c1 kineticscroll accepts keyboard events too, scrollwidget scrollbars don't
accept focus

svn path=/trunk/KDE/kdelibs/; revision=1048165
2009-11-12 20:44:02 +00:00
Marco Martin
ae59a44b81 support horizontal scrollwheels
svn path=/trunk/KDE/kdelibs/; revision=1048147
2009-11-12 20:17:30 +00:00
Marco Martin
dd581265cf move the extra border in the size hint
svn path=/trunk/KDE/kdelibs/; revision=1041792
2009-10-28 14:19:34 +00:00
Marco Martin
6808c61eca when the internal widget won't scroll in -any- direction ignore the
wheel

svn path=/trunk/KDE/kdelibs/; revision=1041331
2009-10-27 20:16:51 +00:00
Marco Martin
d86cac78e4 crash--
svn path=/trunk/KDE/kdelibs/; revision=1041323
2009-10-27 19:48:00 +00:00
Marco Martin
25d1f3f5b6 if the sub widget can't scroll at all, just ignore the mouse event
svn path=/trunk/KDE/kdelibs/; revision=1041272
2009-10-27 18:04:02 +00:00
Marco Martin
d9de800d36 SVN_SILENT: less awfully long line
svn path=/trunk/KDE/kdelibs/; revision=1039434
2009-10-23 12:07:48 +00:00
Marco Martin
a7573ce263 clean up a bit of old wronghish code and no more jumping behaviour
svn path=/trunk/KDE/kdelibs/; revision=1038795
2009-10-21 21:04:03 +00:00
Marco Martin
b2bb69732a provide the Animator::registerScrollingManager(qgraphicsidget) function.
the animator creates a kineticscroll and associates it with the widget.
in this way we can use kineticscroll outside of libplasma with a single
call.

svn path=/trunk/KDE/kdelibs/; revision=1037751
2009-10-19 22:10:25 +00:00
Marco Martin
342489ea62 ignore the scroll event if the widget is totally scrolled
svn path=/trunk/KDE/kdelibs/; revision=1035777
2009-10-15 20:46:07 +00:00
Marco Martin
c4b42df8e8 use an eventfilter instead to have to manually forward each event,
should be less error prone and require less api

svn path=/trunk/KDE/kdelibs/; revision=1035740
2009-10-15 19:11:34 +00:00
Marco Martin
2822ce65cd include wheelevent too
svn path=/trunk/KDE/kdelibs/; revision=1034755
2009-10-13 12:36:48 +00:00
Marco Martin
38884ccd1a now the api is similar to what webkit offers and horizontal and vertical
scroll is done in pixels and in a single pass.                                          
we have 3 properties in widgets that wants to support scroll:
scrollPosition
viewportGeometry
constentsSize


svn path=/trunk/KDE/kdelibs/; revision=1032821
2009-10-08 16:04:56 +00:00
Adenilson Cavalcanti Da Silva
3d33d3f28f Factoring the ratio of widget/viewport size when doing the
kinetic scrolling.

This will help to have a proper scrolling in cases that the
viewport is several times smaller than the widget size.


svn path=/trunk/KDE/kdelibs/; revision=1032023
2009-10-06 16:58:42 +00:00
Marco Martin
17b6cf0974 qvariant doean't have toReal, build++
svn path=/trunk/KDE/kdelibs/; revision=1030886
2009-10-03 12:30:00 +00:00
Igor Trindade Oliveira
cab81476e3 fix: rounded-off errors
svn path=/trunk/KDE/kdelibs/; revision=1030709
2009-10-03 03:27:52 +00:00
Igor Trindade Oliveira
a73a22d713 SVN_SILENT: timer--, remove one timer
svn path=/trunk/KDE/kdelibs/; revision=1030290
2009-10-02 04:05:21 +00:00
Adenilson Cavalcanti Da Silva
0373ff836d Tweaking kinetic scrolling parameters to slow down a bit.
It also started to use QRectF to improve precision (should make
movement smoother).


svn path=/trunk/KDE/kdelibs/; revision=1030203
2009-10-01 20:44:40 +00:00
Adenilson Cavalcanti Da Silva
99cdc241c3 Making kinetic scrolling class generic.
The current design uses 3 properties to calculate movement (horizontal/vertical 
position and the viewport size) being up to the client class (e.g. ScrollWidget)
move its widgets when the position property changed.

It will allow to reuse the kinetic scrolling class with other plasmoids.


svn path=/trunk/KDE/kdelibs/; revision=1030136
2009-10-01 16:47:19 +00:00
Adenilson Cavalcanti Da Silva
da3ece21e8 Fixing kinetic scrolling with thinkpad 'scrollwheel'
Since it generates lots of wheel events, it was re-triggering the bouncer
animation before it was completed. The result was a 'jittering' (d)effect.

I also increased the friction factor to make it scroll slower.


svn path=/trunk/KDE/kdelibs/; revision=1026404
2009-09-21 18:38:53 +00:00
Igor Trindade Oliveira
03dbe67aae fix horizontal kinetic scrolling
svn path=/trunk/KDE/kdelibs/; revision=1026072
2009-09-20 18:21:41 +00:00
Igor Trindade Oliveira
03ab1a611a horizontal kinetic scrolling working right now
svn path=/trunk/KDE/kdelibs/; revision=1025781
2009-09-19 17:07:56 +00:00
Laurent Montel
1a8d9c1030 const'ify
svn path=/trunk/KDE/kdelibs/; revision=1025302
2009-09-18 10:26:43 +00:00
Igor Trindade Oliveira
770791bcaa SVN_SILENT: remove repeated code
svn path=/trunk/KDE/kdelibs/; revision=1025262
2009-09-18 09:27:04 +00:00
Igor Trindade Oliveira
f4b99c99d7 change name: from overshut to overshoot
svn path=/trunk/KDE/kdelibs/; revision=1025203
2009-09-18 08:56:09 +00:00
Adenilson Cavalcanti Da Silva
974df6773a Adding a kinetic scrolling class and using it in plasma::ScrollWidget.
ATM, it uses timers to do the animation, the idea is to use factory pattern
and implement the animation with QProperyAnimation too (using Qt 4.6).


svn path=/trunk/KDE/kdelibs/; revision=1024929
2009-09-17 16:24:19 +00:00