Commit Graph

95 Commits

Author SHA1 Message Date
Marco Martin
e74f60745a revert 1d167ffa8fe1e79aec2f7b94b78e6910fb7a42bf 2012-11-06 00:32:22 +01:00
Christoph Feck
3f1e310891 Merge branch 'KDE/4.9' into KDE/4.10 2012-10-25 04:27:27 +02:00
Marco Martin
c91905047b check for applet 2012-10-22 16:39:32 +02:00
Montel Laurent
4eeaf0d718 erge remote-tracking branch 'origin/KDE/4.9' into KDE/4.10 2012-10-11 22:35:29 +02:00
Marco Martin
3c55ec6a25 manage buttons even if they are under applet shadow 2012-10-11 21:09:14 +02:00
Montel Laurent
2118a77f73 Merge remote-tracking branch 'origin/KDE/4.9' into KDE/4.10 2012-10-10 23:18:56 +02:00
Jaime Torres
0e45385db4 avoid a possible null pointer ussage
propAnim has been already checked for not being null, but was not
checked here.

REVIEW: 106782
2012-10-10 19:11:21 +02:00
Marco Martin
3cd6781dca fix handle geometry
in case of big shadows check for a hint about shadow size
always draw full frame for applets with no background
2012-10-10 15:38:43 +02:00
Aaron Seigo
64f687dda0 hide tooltips on the applet when the handle is hovered 2012-01-27 15:34:01 +01:00
Aaron Seigo
dd122bc011 move applet handle handling (*cough*) to applet instead of contaiment
much cleaner and eliminates the possibility of odd crashes

BUG:253421
2011-05-28 00:23:37 +02:00
Aaron Seigo
3e3bfe89b0 protect with a weak pointer
BUG:268752
2011-03-17 16:48:14 +01:00
Aaron J. Seigo
8fda2f23c9 repaint when the svgs change
svn path=/trunk/KDE/kdelibs/; revision=1203978
2010-12-05 20:40:12 +00:00
Allen Winter
3edc7be1c5 add krazy excludes for the false positives not using qreal casting in qMin|qMax.
svn path=/trunk/KDE/kdelibs/; revision=1197830
2010-11-16 17:18:10 +00:00
Marijn Kruisselbrink
cf3951ad20 revert r1171729, as those changes broke compilation on platforms where qreal != double
svn path=/trunk/KDE/kdelibs/; revision=1196092
2010-11-12 15:23:22 +00:00
Allen Winter
91f76a12f3 turn floating point constants into qreal's when passing them to qMin or qMax.
found when testing the new Krazy plugin for checking this condition.


svn path=/trunk/KDE/kdelibs/; revision=1171729
2010-09-04 23:07:23 +00:00
Marco Martin
515249e7f4 suicide when the containment changes
BUG:237355

svn path=/trunk/KDE/kdelibs/; revision=1125948
2010-05-12 19:03:28 +00:00
Aaron J. Seigo
bfe45534fc catch an edge condition where propAnim isn't created on fade out
BUG:230159

svn path=/trunk/KDE/kdelibs/; revision=1101747
2010-03-10 20:26:17 +00:00
Davide Bettio
c8cd5ca258 Sorry, I commited the wrong file.
svn path=/trunk/KDE/kdelibs/; revision=1094591
2010-02-22 23:24:05 +00:00
Davide Bettio
abe1ca242a Fixed broken if.
svn path=/trunk/KDE/kdelibs/; revision=1094587
2010-02-22 23:15:09 +00:00
Alexis Ménard
d4683537c9 Build fix on ARM.
svn path=/trunk/KDE/kdelibs/; revision=1092055
2010-02-18 07:39:28 +00:00
Igor Trindade Oliveira
d7e63f903c move applethandle to new animation api.
svn path=/trunk/KDE/kdelibs/; revision=1077217
2010-01-19 17:59:24 +00:00
Marco Martin
00ffbc6616 save and restore weren't necessary here
svn path=/trunk/KDE/kdelibs/; revision=1069824
2010-01-04 10:06:25 +00:00
Marco Martin
d550c9dac2 smooth rotations
svn path=/trunk/KDE/kdelibs/; revision=1069741
2010-01-04 09:27:29 +00:00
Marco Martin
a69bcc4827 try harder to enforce a minimum size of 16x16
svn path=/trunk/KDE/kdelibs/; revision=1066278
2009-12-26 16:19:38 +00:00
Marco Martin
2afa60e695 don't mix scene coordinates and parent ones
so don't move widgets in totally absurd places

svn path=/trunk/KDE/kdelibs/; revision=1063024
2009-12-16 18:51:08 +00:00
Ambroz Bizjak
07fcab757c Simplify some math
svn path=/trunk/KDE/kdelibs/; revision=1059914
2009-12-07 16:54:25 +00:00
Ambroz Bizjak
4da40dc616 Fix the rest of rotation and resizing.
svn path=/trunk/KDE/kdelibs/; revision=1059590
2009-12-07 00:56:22 +00:00
Ambroz Bizjak
4325dd1e40 Calculate initial m_angle, simplify _k_rotatePoint
svn path=/trunk/KDE/kdelibs/; revision=1059568
2009-12-06 23:17:33 +00:00
Bruno Bigras
65455b418b Revert "Fix a bug when a plasmoid could be resized to a smaller value than it's minimumSize"
Fix _k_rotatePoint so it returns 0,0 when rotating a 0,0 point

svn path=/trunk/KDE/kdelibs/; revision=1057684
2009-12-03 06:13:38 +00:00
Bruno Bigras
7e35361bf4 Fix a bug when a plasmoid could be resized to a smaller value than it's minimumSize
svn path=/trunk/KDE/kdelibs/; revision=1057530
2009-12-02 18:51:06 +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
a045136fe0 when resizing/rotating with multitouch, spply a transform, resize to the proper size only at touch end event
svn path=/trunk/KDE/kdelibs/; revision=1053705
2009-11-24 16:26:28 +00:00
Marco Martin
f97924aee3 move the geometry to a correct center
svn path=/trunk/KDE/kdelibs/; revision=1053216
2009-11-23 16:48:18 +00:00
Marco Martin
644d5e363e tabs--
svn path=/trunk/KDE/kdelibs/; revision=1050130
2009-11-16 18:20:18 +00:00
Marco Martin
4988229770 support for touchEvents
svn path=/trunk/KDE/kdelibs/; revision=1049191
2009-11-14 17:33:00 +00:00
Aaron J. Seigo
6de1341e1b fix resize-after-move, which was seriously annoying me for a while now; thankfully it was an easy fix :)
svn path=/trunk/KDE/kdelibs/; revision=1045892
2009-11-06 22:34:22 +00:00
Aaron J. Seigo
7acbfbc47f be sure to always have a containment!
BUG:206379

svn path=/trunk/KDE/kdelibs/; revision=1045316
2009-11-05 19:17:00 +00:00
Marco Martin
2f7ba10bfc return the proper shape
svn path=/trunk/KDE/kdelibs/; revision=1039146
2009-10-22 20:38:32 +00:00
Marco Martin
a45a20c32c return the proper boundingRect()
svn path=/trunk/KDE/kdelibs/; revision=1039144
2009-10-22 20:32:36 +00:00
Marco Martin
82177676af better gradient when the handle is at left
svn path=/trunk/KDE/kdelibs/; revision=1039135
2009-10-22 20:01:19 +00:00
Aaron J. Seigo
c5833d1939 handles are now children of the applet, so we don't need to destroy them ourselves; we do need to clear the applet pointer in the handle before it is destroyed, however.
BUG:209058

svn path=/trunk/KDE/kdelibs/; revision=1035446
2009-10-15 03:25:07 +00:00
Aaron J. Seigo
5a36b63df8 use QGraphicsObject, another nicety in Qt 4.6
svn path=/trunk/KDE/kdelibs/; revision=1035320
2009-10-14 18:59:44 +00:00
Marco Martin
08d49e6fd0 introducing the concept of associated application:
an an application and/or an url list can be associated with an aplet
and a context menu entry and an applet handle button will be added to
launch that application.
the applet will be considered a preview of something, where the
application its full view, for example the picture frame can open
gwenview

svn path=/trunk/KDE/kdelibs/; revision=1024487
2009-09-16 17:08:45 +00:00
Marco Martin
ae59b63602 resize of rotated applets -almost- correct.. almost..
svn path=/trunk/KDE/kdelibs/; revision=1021737
2009-09-09 22:24:49 +00:00
Marco Martin
f56a174cd3 map the movement to the rotation transform
svn path=/trunk/KDE/kdelibs/; revision=1021647
2009-09-09 18:08:00 +00:00
Aaron J. Seigo
85defb5470 start of making the applet handle a child of the applet, stacked behind. a lot less code, preserves the geometry caches in the scene. also removes a ton of update() calls that aren't necessary these days. result -> a lot snappier/smoother. still some positioning bugs due to the change in parenting in the code, but definitely the direction we need to be going in.
svn path=/trunk/KDE/kdelibs/; revision=1021595
2009-09-09 16:14:20 +00:00
Marco Martin
70f4e5aee6 oops, that 1|| was bogus of course
svn path=/trunk/KDE/kdelibs/; revision=1014445
2009-08-22 20:52:03 +00:00
Marco Martin
195e3a709d also check the size hint as minimum size
boundingrect-boundingrect=0, what we want is contentsrect

svn path=/trunk/KDE/kdelibs/; revision=1014443
2009-08-22 20:49:12 +00:00
Fredrik Höglund
4f0a9c1b2f Don't start the fade out animation if the applet handle is still under the mouse.
svn path=/trunk/KDE/kdelibs/; revision=948317
2009-04-02 19:08:22 +00:00
Marco Martin
dbc4852624 if a qmenu is open the handle doesn't disappear, make it disappear as
soon as the menu closes, this way it doesn't steal anymore the focus to
the applet
BUG:180752

svn path=/trunk/KDE/kdelibs/; revision=948256
2009-04-02 16:43:41 +00:00