Daniel Laidig
911b361064
fading works fine if one of the pixmaps is empty
...
in this case, the emtpy pixmap behaves just like a transparent one
svn path=/trunk/KDE/kdelibs/; revision=1114906
2010-04-14 20:53:45 +00:00
Marco Martin
8dcae8f83c
heuristic for formfactor becoming quite complex.
...
since a containment can put applet in a child widget, we must compare sizes only of parents that are indeed applets (only way it works both the systray plasmoid and the newspaper applets)
svn path=/trunk/KDE/kdelibs/; revision=1114750
2010-04-14 12:05:15 +00:00
Aaron J. Seigo
548ca104e2
use ContainmentPrivate::isPanelContainment() for more readable code
...
svn path=/trunk/KDE/kdelibs/; revision=1114542
2010-04-13 21:10:28 +00:00
Marco Martin
b4b822e1dd
chack for view, crash--
...
svn path=/trunk/KDE/kdelibs/; revision=1114503
2010-04-13 19:16:20 +00:00
Aaron J. Seigo
08c94cc3de
put the containment in the position that best suits it as soon as possible
...
svn path=/trunk/KDE/kdelibs/; revision=1114490
2010-04-13 18:37:14 +00:00
Aaron J. Seigo
7aad31a3a9
when setting an applet to be a containment, check the furniture
...
svn path=/trunk/KDE/kdelibs/; revision=1114489
2010-04-13 18:36:54 +00:00
Aaron J. Seigo
42d4fe3edf
* provide a way to check that the standard items for a containment are around; allows earlier setting of containment type
...
* provide means to get preferred positions of containments
svn path=/trunk/KDE/kdelibs/; revision=1114488
2010-04-13 18:36:38 +00:00
Aaron J. Seigo
662c7fb0dd
be able to check if it is empty
...
svn path=/trunk/KDE/kdelibs/; revision=1114486
2010-04-13 18:33:56 +00:00
Marco Martin
6215a71fe7
ssign the view to the qstyleoption only if it's the proper view
...
svn path=/trunk/KDE/kdelibs/; revision=1114459
2010-04-13 16:21:12 +00:00
Marco Martin
956b5a8cc2
more heuristics in finding out the formfactor when an applet is inside another:
...
a popupapplet is alwais constrained if not directly in containment, an applet depends from the layout minimum size hint (and yes, is just to not break systemmonitor)
svn path=/trunk/KDE/kdelibs/; revision=1113811
2010-04-11 21:05:55 +00:00
Marco Martin
d29ea0a926
-is possible to drop items at any place of an extender group
...
-fix build
svn path=/trunk/KDE/kdelibs/; revision=1113376
2010-04-10 16:43:56 +00:00
Marco Martin
0c989d306f
it's possible to drop items into extendergroups.
...
still not possible to chose the position, will come
svn path=/trunk/KDE/kdelibs/; revision=1113368
2010-04-10 16:15:52 +00:00
Laurent Montel
37c4df0145
Fix mem leak
...
svn path=/trunk/KDE/kdelibs/; revision=1113296
2010-04-10 11:22:56 +00:00
Marco Martin
63952c3a78
re add the automatic resize on sub items add and removal
...
svn path=/trunk/KDE/kdelibs/; revision=1113044
2010-04-09 19:13:46 +00:00
Marco Martin
937892d2ee
remove an extenderitem from his group when is dragged away. makes drag and drop of items actually working
...
svn path=/trunk/KDE/kdelibs/; revision=1113017
2010-04-09 17:59:56 +00:00
Marco Martin
43a7dbe1f6
pile new extenderitems on top
...
svn path=/trunk/KDE/kdelibs/; revision=1112912
2010-04-09 13:23:08 +00:00
Marco Martin
90a4225a91
add the size of the proper scrollbar, fix epic sizehint fail
...
svn path=/trunk/KDE/kdelibs/; revision=1112910
2010-04-09 13:18:25 +00:00
Marco Martin
3b3c111e48
tery with different size policies
...
svn path=/trunk/KDE/kdelibs/; revision=1112902
2010-04-09 13:05:48 +00:00
Marco Martin
ea1e8d4b93
move the dialog on resize only it it waasn't the user resizing it manually
...
svn path=/trunk/KDE/kdelibs/; revision=1112886
2010-04-09 12:26:01 +00:00
Aaron J. Seigo
3818bc13e6
cleanups
...
svn path=/trunk/KDE/kdelibs/; revision=1112726
2010-04-08 23:47:21 +00:00
Aaron J. Seigo
fb00fcf42c
use the package path provided by the package structure; fewer hardcoded paths
...
svn path=/trunk/KDE/kdelibs/; revision=1112725
2010-04-08 23:47:05 +00:00
Aaron J. Seigo
55dba31bcf
read in and write out the other configurable aspects of package structures
...
svn path=/trunk/KDE/kdelibs/; revision=1112723
2010-04-08 23:13:45 +00:00
Marco Martin
861c4c18c3
when one of the size hints changes, sync again the graphicswidget and the view
...
svn path=/trunk/KDE/kdelibs/; revision=1112684
2010-04-08 20:31:29 +00:00
Marco Martin
5d28ad3e73
should not be needed anymore
...
svn path=/trunk/KDE/kdelibs/; revision=1112642
2010-04-08 18:44:24 +00:00
Marco Martin
2aa0b00d40
expanding seems to work better
...
svn path=/trunk/KDE/kdelibs/; revision=1112625
2010-04-08 17:32:43 +00:00
Aaron J. Seigo
892d8ae1c0
use the easing curve in all of our animations
...
svn path=/trunk/KDE/kdelibs/; revision=1112612
2010-04-08 17:07:33 +00:00
Marco Martin
2ab49f0057
preferred vertical size policy wasn't a good idea
...
svn path=/trunk/KDE/kdelibs/; revision=1112592
2010-04-08 15:52:26 +00:00
Marco Martin
e2f41fbb6c
adjust extender size in an eventfilter, should catch more events
...
svn path=/trunk/KDE/kdelibs/; revision=1112590
2010-04-08 15:49:00 +00:00
Marco Martin
c93a690067
resize to proper size when the group expands
...
svn path=/trunk/KDE/kdelibs/; revision=1112554
2010-04-08 13:24:43 +00:00
Marco Martin
62ac00ba11
resize extender to this group preferred hint
...
svn path=/trunk/KDE/kdelibs/; revision=1112550
2010-04-08 13:19:17 +00:00
Marco Martin
192052b0b7
-make sure hints are invalidated when the inner widget resizes
...
-the size hint should take into account the -double- border
svn path=/trunk/KDE/kdelibs/; revision=1112548
2010-04-08 13:14:55 +00:00
Script Kiddy
cf414512b7
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdelibs/; revision=1112421
2010-04-08 05:47:25 +00:00
Marco Martin
fd5d33ee8a
several layout fixes:
...
- extenderitem components have a fixed vertical size policy: they must not stretch when extenderitems are collapsed
- one hardcoded size less
-try to resize the internal scroller widget to sizehints in some case more
svn path=/trunk/KDE/kdelibs/; revision=1112347
2010-04-07 22:02:52 +00:00
Aaron J. Seigo
3ec50c411f
do the proxy widget resize first, so that the edit rect is correct
...
svn path=/trunk/KDE/kdelibs/; revision=1112338
2010-04-07 21:45:09 +00:00
Aaron J. Seigo
9eecf8ba7c
pass on the resize event.
...
svn path=/trunk/KDE/kdelibs/; revision=1112336
2010-04-07 21:42:19 +00:00
Marco Martin
a6c55a9cf3
take scrollbars into account for preferred size hint
...
minimum size is still fixed, basing on the contained widget doesn't work
svn path=/trunk/KDE/kdelibs/; revision=1112299
2010-04-07 19:54:44 +00:00
Bruno de Oliveira Abinader
4f301b339f
Reverting "Added bouncing effect for Rotation animation"
...
svn path=/trunk/KDE/kdelibs/; revision=1112210
2010-04-07 15:56:21 +00:00
Bruno de Oliveira Abinader
7507808e7c
Added bouncing effect for Rotation animation
...
svn path=/trunk/KDE/kdelibs/; revision=1112192
2010-04-07 15:19:07 +00:00
Marco Martin
a163a59624
try to keep the parent widget of a more correct size
...
svn path=/trunk/KDE/kdelibs/; revision=1112159
2010-04-07 13:53:49 +00:00
Marco Martin
a45a7fe57a
remove the widget from the layout if it's hidderemove the widget from the layout if it's hidden
...
svn path=/trunk/KDE/kdelibs/; revision=1112157
2010-04-07 13:48:43 +00:00
Marco Martin
9dc655c6df
resize extender and the child widget to the size hint when needed
...
svn path=/trunk/KDE/kdelibs/; revision=1112153
2010-04-07 13:36:47 +00:00
Marco Martin
fa7a1ddfe9
guard returnToSourceAction pointer
...
svn path=/trunk/KDE/kdelibs/; revision=1112148
2010-04-07 13:17:55 +00:00
Aaron J. Seigo
556c51d2a5
* dump support for QGraphicsItems in Extenders. looks like it was already broken anyways (hooray for untested paths). supporting QGraphicsItems just doesn't make much sense anyways. this gets rid of a number of bugs and simplifies the code a lot
...
* use more QGraphicsWidget API and simplify the code even more
* put the title bar drawing into a class of its own, simplifying the code yet more
* use a Plasma::Label in the title bar so we don't have to draw our own text and ... well, you know what goes here by now ;)
one downside to this is that margins in title bar svg are *actually* honored, which means the titles take a bit more room. the svg can be tweaked, however.
svn path=/trunk/KDE/kdelibs/; revision=1111918
2010-04-07 02:04:52 +00:00
Aaron J. Seigo
5ed9e14f0e
propagate cursor changes to the native widget
...
svn path=/trunk/KDE/kdelibs/; revision=1111916
2010-04-07 01:44:56 +00:00
Aaron J. Seigo
d388ecebcb
* get rid of an unneeded layout in the toolbox
...
* recycle items instead of recreating them constantly
* get the margins at the top actually correct (still not sure why the toobox doesn't paint it's own background to make that all easier)
* set tooltips on the return and close buttons
svn path=/trunk/KDE/kdelibs/; revision=1111883
2010-04-06 21:56:32 +00:00
Aaron J. Seigo
b1ca5781b9
* fix titleRect calculation
...
* move some more unneeded-if-titlerect-is-empty code beneath the short circuiting if statement in the paint method
svn path=/trunk/KDE/kdelibs/; revision=1111862
2010-04-06 20:42:25 +00:00
Aaron J. Seigo
61ca96b034
don't paint the title if there isn't a title to paint
...
svn path=/trunk/KDE/kdelibs/; revision=1111855
2010-04-06 20:26:05 +00:00
Marco Martin
65ca45681f
put the proper margin on top of extenderitems
...
svn path=/trunk/KDE/kdelibs/; revision=1111853
2010-04-06 20:19:53 +00:00
Marco Martin
997e6b32ea
since imagePath is regularly used to check if images are present, be a bit more quiet
...
svn path=/trunk/KDE/kdelibs/; revision=1111731
2010-04-06 15:06:41 +00:00
Marco Martin
2cecd31fe2
move the dialog in relation to the delta of the size change when the applet localtion is bottom or right, instead of calling popupposition each time
...
svn path=/trunk/KDE/kdelibs/; revision=1111730
2010-04-06 15:04:33 +00:00