Marco Martin
bdcf7578ee
use a weak pointer
...
svn path=/trunk/KDE/kdelibs/; revision=1185272
2010-10-12 19:33:15 +00:00
Marco Martin
0aa740d33b
since the item takes ownership of its widget, get rid of it when it changes
...
svn path=/trunk/KDE/kdelibs/; revision=1185267
2010-10-12 19:06:34 +00:00
Marco Martin
b3b18e5d7e
make sure to not call the delayed itemaddedevent twice: the queue becomes an hash.
...
the counterindication is that the order now is kinda indeterministinc but *shouldn't* give problems
svn path=/trunk/KDE/kdelibs/; revision=1185200
2010-10-12 14:36:46 +00:00
Marco Martin
c79712f294
the update of the dragger appearance belongs in themeChanged()
...
svn path=/trunk/KDE/kdelibs/; revision=1185176
2010-10-12 13:20:04 +00:00
Marco Martin
22db020315
start with groups not collapsed by default
...
svn path=/trunk/KDE/kdelibs/; revision=1185145
2010-10-12 11:02:09 +00:00
Marco Martin
132719558d
adjust the alignment even where there is only th icon on the left but no buttons on the right
...
svn path=/trunk/KDE/kdelibs/; revision=1185142
2010-10-12 10:44:59 +00:00
Marco Martin
b2afff32f3
* hide the icon when a null one is set
...
* center the title text
svn path=/trunk/KDE/kdelibs/; revision=1185117
2010-10-12 10:02:19 +00:00
Marco Martin
65acd2bfda
disable overflow borders
...
svn path=/trunk/KDE/kdelibs/; revision=1184912
2010-10-11 20:00:04 +00:00
Marco Martin
7306716038
IMPROVEMENT: the whole extender scrolls when there is not enough room anymore.
...
the extendergroup doen't have a scrollwidget anymore
still needs perfecting but is already less buggy and prettier
svn path=/trunk/KDE/kdelibs/; revision=1184907
2010-10-11 19:17:19 +00:00
Marco Martin
b5688057bc
fix root items appearance
...
svn path=/trunk/KDE/kdelibs/; revision=1184861
2010-10-11 16:04:06 +00:00
Marco Martin
f947ed9495
FEATURE: new feature in the theme: use a "grouped" prefix for items in a group and "root" prefix for non grouped ones.
...
still fallsback to the old one if either those prefixes don't exist or the root one doesn't have a "stacked" appearance
svn path=/trunk/KDE/kdelibs/; revision=1184857
2010-10-11 15:46:23 +00:00
Aaron J. Seigo
03f8db0342
when an extender is created on an applet without an extender and it is a popup applet without an explicitly defined graphicsWidget, make it re-check the layout so it creates a dialog or whatever when appropriate based on having a graphicsWidget now
...
svn path=/trunk/KDE/kdelibs/; revision=1180038
2010-09-26 20:19:11 +00:00
Marco Martin
b53a6e5b0a
items in groups no longer have any border
...
svn path=/trunk/KDE/kdelibs/; revision=1177842
2010-09-21 12:43:15 +00:00
Marco Martin
6655948ccd
IMPROVEMENT: when searcing for our hostApplet, always look for the extenders's applet before,
...
it is slightly faster and -partly- fixes the inability of detecting the host applet when it is an applet-in-applet, like the systray
svn path=/trunk/KDE/kdelibs/; revision=1177632
2010-09-20 19:25:30 +00:00
Marco Martin
a80f50cf4d
actually use pendingItems
...
svn path=/trunk/KDE/kdelibs/; revision=1177535
2010-09-20 13:34:12 +00:00
Marco Martin
ec9a6ad1ba
FEATURE: allow to add actions with only text in the extender titlebar, they will appear as push buttons
...
svn path=/trunk/KDE/kdelibs/; revision=1177247
2010-09-19 21:28:39 +00:00
Marco Martin
5560dc2b14
if destroy is called when the extenderitem is being deleted already it could not have a scene
...
svn path=/trunk/KDE/kdelibs/; revision=1177229
2010-09-19 20:05:09 +00:00
Marco Martin
8992e628f8
delay itemAddedEvent at the end of the event loop:
...
if an item is added in a group right after creation, an itemAddedEvent shouldn't happen at all
svn path=/trunk/KDE/kdelibs/; revision=1177226
2010-09-19 19:47:23 +00:00
Aaron J. Seigo
931ce93e03
whoops; his patch and mine colided and this include header got committed by accident
...
svn path=/trunk/KDE/kdelibs/; revision=1171409
2010-09-03 19:26:47 +00:00
Aaron J. Seigo
f02786e31a
SVN_SILENT: ease giulio's pain in generate diffs
...
svn path=/trunk/KDE/kdelibs/; revision=1171395
2010-09-03 18:09:18 +00:00
Aaron J. Seigo
7e23828338
build
...
svn path=/trunk/KDE/kdelibs/; revision=1153772
2010-07-24 00:52:46 +00:00
Marco Martin
2687d8595b
add an option in extenderitem to use a config group completely in memory, intended for extenderitems that really aren't supposed to be saved and restored on disk.
...
the notifications one, but more important the job ones really don't have a big point to be saved.
svn path=/trunk/KDE/kdelibs/; revision=1153692
2010-07-23 19:29:50 +00:00
Aaron J. Seigo
1791b2b693
avoid warnings
...
svn path=/trunk/KDE/kdelibs/; revision=1142366
2010-06-24 18:32:49 +00:00
Aaron J. Seigo
0543ed0f15
a work around for the fact that groups and items are in the same collection, which can cause issues on destruction
...
BUG:242112
svn path=/trunk/KDE/kdelibs/; revision=1141872
2010-06-23 17:58:33 +00:00
Marco Martin
6f8d808068
event->button() is usually empty, do drags only with the left buttons (and find the down position with that too) instead
...
BUG:198814
svn path=/trunk/KDE/kdelibs/; revision=1137301
2010-06-12 09:51:42 +00:00
Marco Martin
c77396e412
update the return to source button visibility based on the hostapplet immutability rather than sourceapplet, works also if not all containments have the same immutability (netbook)
...
BUG:235949
svn path=/trunk/KDE/kdelibs/; revision=1137192
2010-06-11 22:02:54 +00:00
Aaron J. Seigo
94bcb2a621
access the member directly
...
svn path=/trunk/KDE/kdelibs/; revision=1136832
2010-06-10 21:32:10 +00:00
Aaron J. Seigo
1cca6c7d02
foreach takes a copy, use a mutable iterator. prevents crashes. also make a few more sanity checks in places to be ++sure about the health when executing those methods.
...
BUG:235851
BUG:240996
svn path=/trunk/KDE/kdelibs/; revision=1136808
2010-06-10 20:10:49 +00:00
Aaron J. Seigo
35e856e4de
set the cursor explicitly on the buttons so that we don't get a hand over the buttons, only over teh draggable bits
...
svn path=/trunk/KDE/kdelibs/; revision=1136780
2010-06-10 17:46:08 +00:00
Marco Martin
2729b466df
extender items can't return to source if the desktop is locked
...
BUG:215230
svn path=/trunk/KDE/kdelibs/; revision=1134489
2010-06-04 12:40:34 +00:00
Marco Martin
4d23421690
don't try to update the labels when the extender is in its destructor
...
crash--
svn path=/trunk/KDE/kdelibs/; revision=1131699
2010-05-28 18:12:13 +00:00
Marco Martin
b8893a8044
too much classes clobbers with the Extender's private, protect d->applet behind a QWeakPointer
...
BUG:195369
BUG:232408
CCBUG:233563
BUG:239022
svn path=/trunk/KDE/kdelibs/; revision=1131248
2010-05-27 19:59:15 +00:00
Marco Martin
32a40accec
whoops forgotten a not in previous commit
...
svn path=/trunk/KDE/kdelibs/; revision=1129238
2010-05-21 18:12:20 +00:00
Marco Martin
19d0f06981
check for existence of applet
...
svn path=/trunk/KDE/kdelibs/; revision=1129236
2010-05-21 18:09:15 +00:00
Marco Martin
f08bf871f6
be sure to relayout if a different position is asked
...
svn path=/trunk/KDE/kdelibs/; revision=1129158
2010-05-21 12:49:27 +00:00
Marco Martin
baf1e98b99
resize extender over item removal
...
svn path=/trunk/KDE/kdelibs/; revision=1129137
2010-05-21 11:24:29 +00:00
Marco Martin
530c3fe70a
invalidate the hint caches, the resize the extender to the hint
...
svn path=/trunk/KDE/kdelibs/; revision=1128980
2010-05-20 20:41:11 +00:00
Marco Martin
8ec35c6c91
resize the extender to its preferred size when a group gets expanded, visual glitches--
...
svn path=/trunk/KDE/kdelibs/; revision=1128971
2010-05-20 20:07:50 +00:00
Marco Martin
3aee2db14e
make extender::groups() work without assigning groups to themselves
...
svn path=/trunk/KDE/kdelibs/; revision=1128236
2010-05-18 18:55:00 +00:00
Marco Martin
f26246c731
-groups of groups are always themselves, this fixes extender::groups()
...
-extra check a group is actually an extendergroup type
svn path=/trunk/KDE/kdelibs/; revision=1128074
2010-05-18 09:28:06 +00:00
Marco Martin
aca321d765
ensure the groups() list doesn't contain null pointer (could fix some bugs, but tendds to generate backtraces not directly obvious)
...
svn path=/trunk/KDE/kdelibs/; revision=1127890
2010-05-17 22:18:12 +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
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
3b3c111e48
tery with different size policies
...
svn path=/trunk/KDE/kdelibs/; revision=1112902
2010-04-09 13:05:48 +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
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