Commit Graph

10 Commits

Author SHA1 Message Date
Aaron J. Seigo
72b7c6f393 more safety, allowing anyone delete a layout or call setParent and have the Right Things(tm) happen without anyone's toes getting blown off in the process.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771851
2008-02-07 02:24:19 +00:00
Chani Armitage
ed47acc7a0 make setting a layout actually safe
(reviewed in #plasma)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771825
2008-02-07 00:18:22 +00:00
Aaron J. Seigo
7f3aea19ff move MarginEdge to the Plasma namespace to avoid coupling to the layout stuff in innapropriate places
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771704
2008-02-06 19:12:21 +00:00
Jason Stubbs
cb9747382b startAnimation() needs to be called if the layout geometry() changes as well
otherwise the updated layout doesn't take effect. This means that it really
does need to be called from relayout(). So to prevent a quasi-infinite loop,
don't restart the timeline if it's already running.

This fixes the tasks geometry not updating correctly when applets are added
to the panel.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=754148
2007-12-29 07:14:21 +00:00
Adriaan de Groot
7e8b236445 Andre W. pointed out it should probably be qreal just in case that's different from float; works on SPARC and x86.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=747411
2007-12-11 23:03:52 +00:00
Adriaan de Groot
cb344f2acd INFINITY is a gcc-ism, use something more C++y (but it's possible to have *no* infinity() for floats; that would require another bit of hackery)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=746992
2007-12-10 19:49:25 +00:00
Aaron J. Seigo
65d405f264 more layouting love;
* widgets should let Widget handle sizing, geometry unless there are very good reasons for it
* don't relayout the parent layout if the parent layout is already relayouting, because that relayout will have called the child's relayout in the first place. get it? relayout!
* i can dance. we can dance. do the relayout dance.
* some style guide fixes

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738957
2007-11-20 01:19:59 +00:00
Aaron J. Seigo
060144d623 protect against relayout recursion here as well
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738932
2007-11-20 00:05:21 +00:00
Aaron J. Seigo
e614df56d0 * consolidate geometry() and setGeometry() from the layouts into Layout
* introduce relayout() which does only that
* place guards around relayout() calls in Layout class to prevent recursion

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738923
2007-11-19 23:45:56 +00:00
Aaron J. Seigo
92ba2c1b0b move all the layouts to their own directory; much more logical and makes it easier to not miss layouts that need changes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738898
2007-11-19 22:42:56 +00:00