Commit Graph

41 Commits

Author SHA1 Message Date
Andreas Hartmetz
baa2c64f61 Only call into the larger framework when we're fully initialized; the framework called back into ItemBackground when member variables were not initialized, causing valgrind warnings.
svn path=/trunk/KDE/kdelibs/; revision=1171385
2010-09-03 16:39:37 +00:00
Marco Martin
ab688e2471 try to disable ItemSendsGeometryChanges, if won't cause problems, it could be put in several places in plasma
svn path=/trunk/KDE/kdelibs/; revision=1150355
2010-07-15 19:11:29 +00:00
Igor Trindade Oliveira
79db16ac7b port itembackground to new animation api.
svn path=/trunk/KDE/kdelibs/; revision=1078255
2010-01-21 21:53:01 +00:00
Marco Martin
bf438dcf98 be LGPL2+
svn path=/trunk/KDE/kdelibs/; revision=1066185
2009-12-26 10:37:47 +00:00
Marco Martin
99500091a1 revert last change
svn path=/trunk/KDE/kdelibs/; revision=1065635
2009-12-23 22:11:39 +00:00
Marco Martin
3c69761d55 change a bit the logic of when show the animation or not
svn path=/trunk/KDE/kdelibs/; revision=1065286
2009-12-22 22:18:57 +00:00
Marco Martin
7732b62f16 if the target gets shown show the background too
svn path=/trunk/KDE/kdelibs/; revision=1063611
2009-12-18 22:10:32 +00:00
Marco Martin
177956d55e always draw behind the target
svn path=/trunk/KDE/kdelibs/; revision=1061624
2009-12-12 14:33:27 +00:00
Marco Martin
c4bd7a9db4 don't set the parent item as target, since we don't know when target will die.
instead map the target position to the proper place, in our current parent's coordinates
BUG:211404

svn path=/trunk/KDE/kdelibs/; revision=1061426
2009-12-11 17:46:08 +00:00
Artur Duque de Souza
b0630bfd58 Remove old code from itembackground and fix possible cause
of segfault with device notifier

svn path=/trunk/KDE/kdelibs/; revision=1053424
2009-11-24 03:06:38 +00:00
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