Commit Graph

6544 Commits

Author SHA1 Message Date
Aaron J. Seigo
ae4f0579b9 only check the config for immutability if we actually have it; immutability() gets called from setHasConfigurationInterface which gets called from AppletPrivate::init() which meant it was trying to access the configuration group too early, resulting in it being misplaced; for most applets this wouldn't matter, but for applets-in-applets (it's always the sinners) it causes problems
BUG:261264

svn path=/trunk/KDE/kdelibs/; revision=1209283
2010-12-26 10:42:57 +00:00
Aaron J. Seigo
ab4e0e24d3 constify
svn path=/trunk/KDE/kdelibs/; revision=1208728
2010-12-22 23:37:56 +00:00
Nicolas Lécureuil
c29c17c400 Fix crahs by checking archive
http://reviewboard.kde.org/r/6184

svn path=/trunk/KDE/kdelibs/; revision=1208684
2010-12-22 20:59:33 +00:00
Nicolas Lécureuil
ec872fa08d Show the warning before metadataPath is clear, if not the warning always show an empty result.
svn path=/trunk/KDE/kdelibs/; revision=1208682
2010-12-22 20:55:59 +00:00
Marco Martin
5fd137c064 emit clicked only on mouse release and only with left button
svn path=/trunk/KDE/kdelibs/; revision=1208161
2010-12-20 21:16:06 +00:00
Script Kiddy
f0793a0126 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdelibs/; revision=1207961
2010-12-20 06:27:11 +00:00
Manuel Mommertz
e928c0baaf allow SharedSvgRenderer to put interesting elements in the rect cache on load
fixes the detection of svgs that use a style for system colors

svn path=/trunk/KDE/kdelibs/; revision=1207463
2010-12-18 08:54:17 +00:00
Marco Martin
698b513868 the dialog private is in its seprarate file ecause it gets accessed by popupapplet to set an applet pointer
in this way we can use the corona to actually find out the real desktop geometry, that doesn't fail for extended monitors like QDesktopWidget does.

BUG:257955

svn path=/trunk/KDE/kdelibs/; revision=1207416
2010-12-17 22:37:09 +00:00
Marco Martin
3e57946f66 if the containment it's an offscreen widget, don't allow to claim a screen, after all it's *off*screen
fixes the switch to a dashboard with an independent widget set

svn path=/trunk/KDE/kdelibs/; revision=1207374
2010-12-17 18:01:44 +00:00
Script Kiddy
5fe66eb33b SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdelibs/; revision=1207225
2010-12-17 06:25:45 +00:00
Jeremy Paul Whiting
83124b7029 Remove previous "preferred" file definition when path changes with single image paths.
BUG:259373

svn path=/trunk/KDE/kdelibs/; revision=1207123
2010-12-17 03:02:20 +00:00
Giulio Camuffo
3534c4fc0e look for the containment in the QObject hierarchy if it could not be find in the QGraphicsItem one. This is needed to
make the applet which are offscreen find their containment.

svn path=/trunk/KDE/kdelibs/; revision=1207068
2010-12-16 20:08:16 +00:00
Marco Martin
3ad1f7887a ignore mouse press as well if isn't possible to flick
svn path=/trunk/KDE/kdelibs/; revision=1207046
2010-12-16 17:39:59 +00:00
Marco Martin
e2f5428044 limit the rate of wheel events to 50 msecs.
this makes the scroll widget not getting mad with a touchpad scroll, that spits a ton of subsequent wheel events

svn path=/trunk/KDE/kdelibs/; revision=1207045
2010-12-16 17:38:41 +00:00
Marco Martin
9269fcb7a3 ignore wheel events if it is not possible to scroll
BUG:256073

svn path=/trunk/KDE/kdelibs/; revision=1207036
2010-12-16 17:11:09 +00:00
Script Kiddy
2b74c07089 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdelibs/; revision=1206943
2010-12-16 07:00:33 +00:00
Marco Martin
3affa93b86 auto resize at most at a third of the screen size.
this is still not perfect (should also take into account the user custom resize)
but avoids the widget being resize to completely ridiculous sizes

svn path=/trunk/KDE/kdelibs/; revision=1206707
2010-12-15 15:01:19 +00:00
Marco Martin
07444819b7 move the size adjustment in a private member
svn path=/trunk/KDE/kdelibs/; revision=1206703
2010-12-15 14:35:11 +00:00
Aaron J. Seigo
03a4645d5a add a test for "contentsPrefixPaths() == QStringList() is ultimately the same as contentsPrefixPaths() == QStringList() << QString()"; proved that this worked as expected (which i knew) but exposed a bug in PackageStructure. huzzah for unit tests.
svn path=/trunk/KDE/kdelibs/; revision=1206643
2010-12-15 07:14:43 +00:00
Aaron J. Seigo
65d5227bec fix and extend debug output
svn path=/trunk/KDE/kdelibs/; revision=1206642
2010-12-15 07:13:20 +00:00
Aaron J. Seigo
d71dc6de98 only append a separator if one isn't already there; otherwise this screws up checks for canonical path existance when a path with a trialing / is passed in as the root and external paths are not allowed
svn path=/trunk/KDE/kdelibs/; revision=1206641
2010-12-15 07:11:46 +00:00
Aaron J. Seigo
b6edd5beca treat no prefixes as the same as one prefix starting at the package root. probably not a bottleneck, but the duplicated code indicates that this may be better placed in PackageStructure in future. this is the path (excuse the pun :) of least change, however.
svn path=/trunk/KDE/kdelibs/; revision=1206637
2010-12-15 06:29:36 +00:00
Aaron J. Seigo
e2ea3a5715 treat no contents prefixes as valid and equivalent to one prefix of QString()
svn path=/trunk/KDE/kdelibs/; revision=1206635
2010-12-15 06:28:33 +00:00
Aaron J. Seigo
c549c85181 --deprecatedApiUsage;
svn path=/trunk/KDE/kdelibs/; revision=1206617
2010-12-15 05:54:06 +00:00
Aaron J. Seigo
8ba74ed014 fix (and comment out for lower debug verbosity) a bit of debug that was accessing a pointer before checking
svn path=/trunk/KDE/kdelibs/; revision=1206552
2010-12-14 22:53:50 +00:00
Aaron J. Seigo
1217cd2c19 a better name, so that upon reading it is clear that there is a signal called renderCompleted as well as a slot (by changing the name of the (private) slot to something other than renderCompleted)
svn path=/trunk/KDE/kdelibs/; revision=1206548
2010-12-14 22:18:56 +00:00
Aaron J. Seigo
aac15c8e68 the fix for 242173 in r1140471 broke use cases where the applet is activated and then showPopup(someInterval) is called. the showPopup call would get made, and then it would be overridden at the next event loop with a timeout of 0 due to the QTimer::singleShot in appletActivated. this queues _all_ calls to showPopup using a QBasicTimer, which should address the focus issues a bit more comprehensively for 242173 and not break, e.g., the autohide on the device notifier.
BUG:242173

svn path=/trunk/KDE/kdelibs/; revision=1206270
2010-12-14 03:14:14 +00:00
Manuel Mommertz
0594bd9d85 Use correct on-disk pixmap cache
svn path=/trunk/KDE/kdelibs/; revision=1206190
2010-12-13 20:14:52 +00:00
Marco Martin
e04e91e9ad disable borders near to the edge of the screen for extenders too
svn path=/trunk/KDE/kdelibs/; revision=1206154
2010-12-13 16:15:49 +00:00
Davide Bettio
6855137e40 Use Horos as default wallpaper instead of Ethais.
svn path=/trunk/KDE/kdelibs/; revision=1206147
2010-12-13 15:18:29 +00:00
Albert Astals Cid
9f7b20829a Replace slow foreach constructs with faster ones
Acked by Marco

svn path=/trunk/KDE/kdelibs/; revision=1206126
2010-12-13 13:36:08 +00:00
Script Kiddy
1a3133cb31 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdelibs/; revision=1206037
2010-12-13 05:55:49 +00:00
Manuel Mommertz
f924a645af don't break unthemed svgs if themeChanged() is called on them
(can happen if svg is color aware and colors change)

svn path=/trunk/KDE/kdelibs/; revision=1205731
2010-12-12 10:39:27 +00:00
Marco Martin
8c4c8b877d add sliderMoved()
svn path=/trunk/KDE/kdelibs/; revision=1205511
2010-12-11 10:53:28 +00:00
Marco Martin
bd29f6a61c be sure the layouts are notified all up the stack from extenderitem to group, to extender and its scrolling widget
svn path=/trunk/KDE/kdelibs/; revision=1205304
2010-12-10 20:00:18 +00:00
David Faure
125db2a0ad skip man:/ tests if the protocol file isn't installed (kdebase not installed)
svn path=/trunk/KDE/kdelibs/; revision=1205004
2010-12-09 23:51:31 +00:00
David Faure
9c9499cfbb remove empty dir
svn path=/trunk/KDE/kdelibs/; revision=1204996
2010-12-09 23:17:59 +00:00
Aaron J. Seigo
28b96ee9f8 * always use the unthemed cache for unthemed svg's; necessary since it checks for colorization needs using the cache before it knows whether colorization is needed or not. thanks to Manuel Mommertz for digging into this aspect.
* connect to themeChanged() signals when not themed or setting a custom theme
* un-dupe themeChanged() code from setTheme
* care not to double connect to signals in places

svn path=/trunk/KDE/kdelibs/; revision=1204529
2010-12-07 20:16:43 +00:00
Marco Martin
adb48ea807 ensure everything has been cleaned up when an extender item dies
BUG:257658

svn path=/trunk/KDE/kdelibs/; revision=1204476
2010-12-07 13:42:36 +00:00
Marco Martin
38e64220da size property nitifies the change
svn path=/trunk/KDE/kdelibs/; revision=1204363
2010-12-06 21:54:29 +00:00
Marco Martin
ef8359507d size property is writable as well
svn path=/trunk/KDE/kdelibs/; revision=1204353
2010-12-06 21:30:08 +00:00
Script Kiddy
185b74418f SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdelibs/; revision=1204067
2010-12-06 06:07:48 +00: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
Script Kiddy
973aaca5f9 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdelibs/; revision=1203691
2010-12-05 05:30:27 +00:00
Marco Martin
c8f2e0cc8e don't completely steal the filtered event, still pass to the drag handle
svn path=/trunk/KDE/kdelibs/; revision=1203605
2010-12-04 20:58:52 +00:00
Script Kiddy
56c261a87c SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdelibs/; revision=1203458
2010-12-04 05:12:19 +00:00
Aaron J. Seigo
77cc19fa47 SVN_SILENT: ocd
svn path=/trunk/KDE/kdelibs/; revision=1203357
2010-12-03 18:24:00 +00:00
Aaron J. Seigo
fdd473d31d * this introduces a Theme object used by Svg to cache the rendering of svg's asking to be colorized, but which are not part of the theme. this requires an independent cache and set of color files, therefore a second Theme object. SvgPrivate::actualTheme() is thus overridden by SvgPrivate::cacheAndColorsTheme() whenever caching or colors are used.
* consolidate the signal/slot connections in SvgPrivate::checkColorHints, and now the check is consistent on all paths (previously, it wasn't!)
* missing (and possible cause of cache key ambiguity) separator in CACHE_ID_WITH_SIZE

svn path=/trunk/KDE/kdelibs/; revision=1203346
2010-12-03 17:10:13 +00:00
Aaron J. Seigo
5b9d43d060 * this introduces a Theme object used by Svg to cache the rendering of svg's asking to be colorized, but which are not part of the theme. this requires an independent cache and set of color files, therefore a second Theme object.
* not dropping the cache just because we change themes; this made sense when just plasma-desktop used this or when the apps using Plasma::Theme all used the same theme. this is no longer the case, really, and having applications changing themes randomly kicking the cache out from underneath other apps that may still be using it is undesirable. this does mean that cache files will accumulate. not sure that's a big issue as they don't tend to be large and are in an area marked as "cache" (so ripe for clean-without-care)
* cleanups such as getting rid of superfluous use of Plasma:: namespacing in code that is now in libplasma, such as the stylesheeting. (it was from a plasmoid sebas wrote originally, iirc, explaining the historical reason for the explicit namespacing)

svn path=/trunk/KDE/kdelibs/; revision=1203345
2010-12-03 17:09:09 +00:00
Aaron J. Seigo
3366e28e72 work around mouse plugins that return a single menu.
svn path=/trunk/KDE/kdelibs/; revision=1203343
2010-12-03 17:03:18 +00:00