Commit Graph

3266 Commits

Author SHA1 Message Date
Aaron J. Seigo
f4486e8862 * remove in-memory entries for invalid elements when an svg is no longer in use
* remove in-memory entries for invalid elements when the rect cache is invalidated for an svg

svn path=/trunk/KDE/kdelibs/; revision=895570
2008-12-11 02:45:45 +00:00
Aaron J. Seigo
7cfce67821 lists to sets and trying to do fewer collection lookups
svn path=/trunk/KDE/kdelibs/; revision=895540
2008-12-10 23:17:12 +00:00
Aaron J. Seigo
b69d0722d8 clear with transparency; a little better but not perfect yet
svn path=/trunk/KDE/kdelibs/; revision=895441
2008-12-10 18:52:26 +00:00
Aaron J. Seigo
fda8cf20d7 take the space location from the cleaned up path, not the original term
BUG:154395

svn path=/trunk/KDE/kdelibs/; revision=895431
2008-12-10 18:15:47 +00:00
Rob Scheepmaker
c51d9d7d9b Yeah, finally! Fixed a crash that occurs when moving an extenderitem back to its source from an extender that was also the last one to have a spacer inserted because the same item was hovering over it. Phew, that was a mouthfull... With this fix we monitor if previousTargetExtender get's destoryed so we don't accidently try to remove it's spacer.
BUG: 171498


svn path=/trunk/KDE/kdelibs/; revision=895405
2008-12-10 17:29:40 +00:00
Marco Martin
4bca5e12ec stop timers and clear list to save also here
svn path=/trunk/KDE/kdelibs/; revision=895381
2008-12-10 15:45:34 +00:00
Marco Martin
232986330b clear local memory caches and stop cache timers when theme changes
svn path=/trunk/KDE/kdelibs/; revision=895370
2008-12-10 14:35:44 +00:00
Marco Martin
6d0e474ba9 detach from the config of rects cache before deleting it
svn path=/trunk/KDE/kdelibs/; revision=895360
2008-12-10 14:21:08 +00:00
Rob Scheepmaker
7ae063b1ec Don't crash on use when detaching extenderitems while having widgets locked. Instead just move the item back where it came from.
svn path=/trunk/KDE/kdelibs/; revision=895345
2008-12-10 13:51:26 +00:00
Script Kiddy
aa49665c6c SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdelibs/; revision=895328
2008-12-10 13:46:31 +00:00
Rob Scheepmaker
72eaf8c5f7 No longer use a QGraphicsGridLayout to manage offscreen widgets in corona. Instead position them manually and give each one a spot where they can grow up to QWIDGETSIZEMAX. This has the advantage of not requiring hacks to work around QGL problems, and it avoids having to move all views when one item resizes. It feels snappier and the code looks cleaner.
svn path=/trunk/KDE/kdelibs/; revision=895118
2008-12-10 00:57:42 +00:00
Aaron J. Seigo
a6140d5a27 use isEmpty; a couple minor, minor changes that crept in while debugging things elsewhere
svn path=/trunk/KDE/kdelibs/; revision=895022
2008-12-09 20:37:41 +00:00
Frederik Gladhorn
f0c5eeea37 put the "Appearance Settings" after "Lock Widgets" in the context menu of the desktop
svn path=/trunk/KDE/kdelibs/; revision=894992
2008-12-09 19:10:30 +00:00
Marco Martin
d0e899603c not all popupapplets are based on extenders :)
svn path=/trunk/KDE/kdelibs/; revision=894991
2008-12-09 19:07:21 +00:00
Marco Martin
2af3225c26 size.isEmpty() does the same and looks nicer, good catch sebas :)
svn path=/trunk/KDE/kdelibs/; revision=894919
2008-12-09 16:22:03 +00:00
Rob Scheepmaker
b321b2f033 Performance optimization: only change the icon if it's actually a different icon. Mainly affects uiserver widgets atm.
Oh, and warning--.


svn path=/trunk/KDE/kdelibs/; revision=894878
2008-12-09 14:04:33 +00:00
Marco Martin
e166600984 last commit was indeed correct but the whole thing still a bit wrong..
the other  problem was that cachePath() did take the wrong size, the size
of the whole svg vs the size of the element to be drawn (and that was my
bad, so we can share the misery now, aaron:)

CCBUG:177172

svn path=/trunk/KDE/kdelibs/; revision=894713
2008-12-09 09:03:12 +00:00
Marco Martin
ff8af18497 a size like QSize(10,0) is valid but will end up in a null pixmap, and
this thing did confuse the cache a lot
CCBUG: 177172
does this patch fixes it? will keep open a day to be really sure :)

svn path=/trunk/KDE/kdelibs/; revision=894591
2008-12-08 22:22:18 +00:00
Aaron J. Seigo
9edf9c2ac0 do the cheap check first
svn path=/trunk/KDE/kdelibs/; revision=894561
2008-12-08 21:31:13 +00:00
Aaron J. Seigo
7bc2bfd8da constBegin
svn path=/trunk/KDE/kdelibs/; revision=894558
2008-12-08 21:27:42 +00:00
Aaron J. Seigo
e328a0a6c1 build .. =/
svn path=/trunk/KDE/kdelibs/; revision=894557
2008-12-08 21:26:46 +00:00
Aaron J. Seigo
12eca1edaf use a const iterator; some ws fixes
svn path=/trunk/KDE/kdelibs/; revision=894551
2008-12-08 21:16:55 +00:00
Aaron J. Seigo
011832d5fb --compiler_warnings;
svn path=/trunk/KDE/kdelibs/; revision=894470
2008-12-08 18:05:17 +00:00
Aaron J. Seigo
e42452e847 * update the direction on location changes
* update the dialog, if it exists, when checking the border of the extender
BUG:177113

svn path=/trunk/KDE/kdelibs/; revision=894469
2008-12-08 18:03:23 +00:00
Marco Martin
1d7144e6f7 die hardcoded colors, die!
svn path=/trunk/KDE/kdelibs/; revision=894466
2008-12-08 17:51:53 +00:00
Aaron J. Seigo
dffbf7817c prevent possible crash
svn path=/trunk/KDE/kdelibs/; revision=894455
2008-12-08 17:32:57 +00:00
Aaron J. Seigo
2d6431cafa don't crash when a runner that doesn't exist is requested
BUGS:170989,177162

svn path=/trunk/KDE/kdelibs/; revision=894424
2008-12-08 15:59:05 +00:00
Script Kiddy
f40bc9cf36 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdelibs/; revision=894370
2008-12-08 13:44:23 +00:00
Marco Martin
1a4565f740 unset the cursor only on mouse release
BUG: 170347

svn path=/trunk/KDE/kdelibs/; revision=894074
2008-12-07 20:47:58 +00:00
Marco Martin
212a4238bd reposition the popup after saving, so won't jump always to the old size
svn path=/trunk/KDE/kdelibs/; revision=894071
2008-12-07 20:20:28 +00:00
Rob Scheepmaker
9116edc392 Use iconSize() function now that that function exists. This avoids having the margins in the dragger 2 pixels smaller then specified.
svn path=/trunk/KDE/kdelibs/; revision=894041
2008-12-07 18:28:26 +00:00
Rob Scheepmaker
7a90f822a5 Resize Plasma::Meter not to it's native size, since larger fonts will get cut off. Instead count the amount of label rows and multiply with the font height.
svn path=/trunk/KDE/kdelibs/; revision=893992
2008-12-07 16:45:49 +00:00
Marco Martin
becd2b631e some cleanups in the caching code
with that the systray background rendering problems seems somewhat less
frequent

svn path=/trunk/KDE/kdelibs/; revision=893751
2008-12-07 12:44:10 +00:00
Aaron J. Seigo
25b3937022 wow, that was massively broken!
svn path=/trunk/KDE/kdelibs/; revision=893519
2008-12-06 18:58:32 +00:00
Marco Martin
ac9356bd85 update the popup position right after creating the popup itself
BUG:177035

svn path=/trunk/KDE/kdelibs/; revision=893271
2008-12-06 12:15:49 +00:00
Marco Martin
ba43ebdd06 corrected sizing problem
animation jumps a bit less randomly
BUG: 176672

svn path=/trunk/KDE/kdelibs/; revision=893099
2008-12-05 22:48:58 +00:00
Marco Martin
b47c32869f use elements dimensions to resize the scrollbar
svn path=/trunk/KDE/kdelibs/; revision=893050
2008-12-05 21:04:33 +00:00
Marco Martin
2952fe3e5f rects cache and pixmap cache needs indeed ids a bit different due to the
fact that framesvgs are always at the "natural" size per se...
this should fix the systray breakage

svn path=/trunk/KDE/kdelibs/; revision=893029
2008-12-05 19:50:01 +00:00
Marco Martin
98b833977b correct some last toolbox annoyances...
svn path=/trunk/KDE/kdelibs/; revision=893011
2008-12-05 18:16:30 +00:00
Script Kiddy
5acc95a83b SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdelibs/; revision=892891
2008-12-05 12:58:22 +00:00
Rob Scheepmaker
5ba015fa56 Removed obsolete call to updateDialogPosition, and use this function in dialogSizeChanged() for consistent dialog position. This solves the problem of the dialog being moved twice when the size of the widget changes.
svn path=/trunk/KDE/kdelibs/; revision=892689
2008-12-04 23:57:47 +00:00
Marco Martin
8994cc5ad6 we have the cure cacheId() function, let's use it mmkay?
svn path=/trunk/KDE/kdelibs/; revision=892656
2008-12-04 20:40:46 +00:00
Marco Martin
e22429867b int with a frameSvg when it's not in a corner
svn path=/trunk/KDE/kdelibs/; revision=892649
2008-12-04 20:36:35 +00:00
Aaron J. Seigo
2207ff1dc5 make it possible to remove panels again
svn path=/trunk/KDE/kdelibs/; revision=892648
2008-12-04 20:34:04 +00:00
Aaron J. Seigo
e377d738ec base the name of the cache on the theme name so that different apps can share it (krunner, plasa, etc)
svn path=/trunk/KDE/kdelibs/; revision=892641
2008-12-04 20:13:50 +00:00
Fredrik Höglund
cc50a63ef6 flicker--
svn path=/trunk/KDE/kdelibs/; revision=892582
2008-12-04 17:03:00 +00:00
Alain Boyer
dd61c4ef02 My first kommit! ;)
Use the local rect cache when possible. This gives another performace boost to painting code.

svn path=/trunk/KDE/kdelibs/; revision=892539
2008-12-04 14:25:40 +00:00
Marco Martin
b596d894e5 keep remove action enabled on panels
svn path=/trunk/KDE/kdelibs/; revision=892472
2008-12-04 12:55:34 +00:00
Marco Martin
c64d38b551 waay more reliable toolbox->toolbar switching, killed the weird
d->needsToolbarBehaviour()

svn path=/trunk/KDE/kdelibs/; revision=892273
2008-12-03 22:44:16 +00:00
Marco Martin
85ef865213 disconnect d->containment, not containment :)
in some cases the view became without any active containment otherwise

svn path=/trunk/KDE/kdelibs/; revision=892260
2008-12-03 22:03:04 +00:00