Aaron J. Seigo
947e2cd632
show() causes an implicit animation which will emit target[Item]Reached signals; this makes the first show smoother in the device notifier
...
svn path=/trunk/KDE/kdelibs/; revision=1032154
2009-10-07 04:16:39 +00:00
Aaron J. Seigo
bd5359ca8f
setTarget -> targetReached, setTargetItem -> targetItemReached
...
svn path=/trunk/KDE/kdelibs/; revision=1032017
2009-10-06 16:44:23 +00:00
Aaron J. Seigo
70b3847210
make moving between items with different parents work a bit better ;)
...
svn path=/trunk/KDE/kdelibs/; revision=1031762
2009-10-05 22:44:08 +00:00
Aaron J. Seigo
6ccaa814b3
* add getter for targetItem
...
* add property for targetItem
svn path=/trunk/KDE/kdelibs/; revision=1031688
2009-10-05 18:59:21 +00:00
Aaron J. Seigo
e4f20fdba8
* add a targetReached(QRectF) signal for completeness
...
* emit the targetReached signals in all cases that the target is reached, not just when there is an animation
* only emit targetReached(QGrahpicsItem*) when there is a target item
* provide a getter for the target rect
* register setTarget as a property
svn path=/trunk/KDE/kdelibs/; revision=1031661
2009-10-05 18:00:06 +00:00
Jacopo De Simoi
e90a75ec51
Unbreak the fadeIn animation, add a temporary workaround until trunk depends on 4.6
...
svn path=/trunk/KDE/kdelibs/; revision=1030871
2009-10-03 11:37:19 +00:00
Jacopo De Simoi
9a1a247591
postpone refreshing of the currently selected item
...
svn path=/trunk/KDE/kdelibs/; revision=1030620
2009-10-02 19:08:36 +00:00
Jacopo De Simoi
b8d35a709c
Add signals targetReached and animationStep
...
svn path=/trunk/KDE/kdelibs/; revision=1030619
2009-10-02 19:06:14 +00:00
Giulio Camuffo
1d1cd9ab47
install event filters for new target again
...
svn path=/trunk/KDE/kdelibs/; revision=1028104
2009-09-25 21:28:07 +00:00
Giulio Camuffo
b363df741e
using installEventFilter if the target is a QGraphicsWidget, else
...
installSceneEventFilter because sceneEventFilter doesn't get GraphicsSceneResize events
svn path=/trunk/KDE/kdelibs/; revision=1027316
2009-09-23 20:29:56 +00:00
Aaron J. Seigo
7ad7bfd634
set d->target sooner so that the code in setTarget(QRectF) works properly
...
svn path=/trunk/KDE/kdelibs/; revision=1026219
2009-09-21 06:17:04 +00:00
Aaron J. Seigo
7b5f1d4e35
since the target is destroyed, reset our internal pointer so we don't subsequently access it in setTargetItem and die a horrible death. corrects crashes in SAL.
...
svn path=/trunk/KDE/kdelibs/; revision=1026212
2009-09-21 05:26:12 +00:00
Marco Martin
48fe7cee90
assign d->target later or the comparison is always false, connect to
...
destroyed and crash--
svn path=/trunk/KDE/kdelibs/; revision=1025756
2009-09-19 15:50:06 +00:00
Jacopo De Simoi
94b684c01c
make sure to disconnect the _old_ target from the itembackground, not the new one with itself
...
svn path=/trunk/KDE/kdelibs/; revision=1025709
2009-09-19 13:30:58 +00:00
Aaron J. Seigo
2f535d5516
if we have a target item and the target is visible but the background item isn't, show the background item and just move it into place
...
svn path=/trunk/KDE/kdelibs/; revision=1025473
2009-09-18 21:24:14 +00:00
Aaron J. Seigo
eb5b7d040c
order and parent the background according to the item
...
svn path=/trunk/KDE/kdelibs/; revision=1017945
2009-08-31 23:47:11 +00:00
Aaron J. Seigo
dc1045b8cb
* proper sizes
...
* don't crash on null target
svn path=/trunk/KDE/kdelibs/; revision=1017771
2009-08-31 12:29:44 +00:00
Aaron J. Seigo
feea867bd3
make it possible to do contntx resct syncing
...
svn path=/trunk/KDE/kdelibs/; revision=1017768
2009-08-31 12:14:47 +00:00
Aaron J. Seigo
b4fa1b3859
use the resize event
...
svn path=/trunk/KDE/kdelibs/; revision=1017755
2009-08-31 11:35:37 +00:00
Aaron J. Seigo
a36b7045f9
track item deletion as well
...
svn path=/trunk/KDE/kdelibs/; revision=1017735
2009-08-31 10:13:44 +00:00
Aaron J. Seigo
bf26e35f5c
move/resize the background when the target item does so
...
svn path=/trunk/KDE/kdelibs/; revision=1017728
2009-08-31 10:04:17 +00:00
Aaron J. Seigo
27b2236e2d
* move the private slot to the dptr
...
* don't crash when handed a null pointer to setTargetItem
svn path=/trunk/KDE/kdelibs/; revision=1017705
2009-08-31 09:19:00 +00:00
Laurent Montel
55187668a8
Fix mem leak
...
svn path=/trunk/KDE/kdelibs/; revision=1017674
2009-08-31 07:22:56 +00:00
Marco Martin
663feaa341
restore fade in/out
...
svn path=/trunk/KDE/kdelibs/; revision=1017614
2009-08-31 00:47:24 +00:00
Marco Martin
082f5f1a93
sorry for the camels :)
...
svn path=/trunk/KDE/kdelibs/; revision=1017602
2009-08-31 00:18:14 +00:00
Marco Martin
43506a6962
fix setTargetItem
...
svn path=/trunk/KDE/kdelibs/; revision=1017598
2009-08-30 23:52:13 +00:00
Marco Martin
c76be95adb
create the dpointer, doh!
...
svn path=/trunk/KDE/kdelibs/; revision=1017588
2009-08-30 23:34:25 +00:00
Marco Martin
087e42ead7
fix itemChange
...
svn path=/trunk/KDE/kdelibs/; revision=1017574
2009-08-30 22:44:47 +00:00
Marco Martin
a93ab19864
fix setTarget and setTargetItem behaviour
...
svn path=/trunk/KDE/kdelibs/; revision=1017557
2009-08-30 21:56:33 +00:00
Marco Martin
40db26d969
use Plasma namespace
...
svn path=/trunk/KDE/kdelibs/; revision=1017553
2009-08-30 21:41:06 +00:00
Marco Martin
77160a9e50
new widget: ItemBackground.
...
can be used for all fake item views based on qgraphicswidgets
svn path=/trunk/KDE/kdelibs/; revision=1017544
2009-08-30 21:17:52 +00:00