Commit Graph

749 Commits

Author SHA1 Message Date
Marco Martin
8b313a1b79 ignore own events
only steal events of objects that are explicitely filtered
fixes the handle when is under the shadow
2012-11-22 18:58:17 +01:00
Marco Martin
1b5bf827c6 don't create handles when applet-in-applet
yet another reason why this shouldn't be done ever
BUG:301648
2012-06-21 10:35:55 +02:00
Marco Martin
977f1aceeb prevent save of not loaded modules
BUG:301507
2012-06-19 20:05:06 +02:00
Marco Martin
222674d3ab save KCM settings on ok ar apply clicked
BUG:300840
2012-06-07 12:50:05 +02:00
Aaron Seigo
ab24ad4a6c if we failed to get the appletdescription, then try to get the pluginName from the existing config 2012-04-30 13:09:51 +02:00
Dawit Alemayehu
fb0b49af8c Normalize all signal/slot connections.
REVIEW: 103728
2012-02-13 14:27:21 -05:00
Aaron Seigo
c1a29b107f only check for remote settings if we generated the dialog ourselves 2012-01-11 14:05:21 +01:00
Aaron Seigo
5190b061d1 don't show help button; not appropriate from widget settings
BUG:254835
2011-12-06 22:55:57 +01:00
Aaron Seigo
3f7859b557 if the shortcut hasn't changed, don't try and update it 2011-12-06 17:37:54 +01:00
Aaron Seigo
abd1d9ddba make shortcuts and sharing settings enable Apply; use a QWeakPointer forthe shortcuts widget 2011-12-06 17:36:39 +01:00
Aaron Seigo
57f9668bd1 config changed is not only called by config dialogs anymore, so more the script forwarding into the public API implementation 2011-12-05 00:16:53 +01:00
Aaron Seigo
e0cd24f83a constrained square makes sense for vertical but not horizontal panels
BUG:282706
2011-12-02 17:30:59 +01:00
Aaron Seigo
ed31f2aaee set the parent of the config skeleton object to be the dialog
BUG:287324
2011-12-01 17:13:30 +01:00
Aaron Seigo
67651e12bb git rid of the shortcuts dialog on reduced functionality builds 2011-11-14 21:20:18 +01:00
Aaron Seigo
f38425761a a missing include 2011-11-03 12:15:52 +01:00
Aaron Seigo
9a4825380f improve loading of system kcms
* don't use libkutils on reduced footprint profile builds
* load the kcms even if there isn't a configLoader for the package
2011-11-02 17:24:25 +01:00
Marco Martin
02eeddf931 correct type dekstop->desktop
please test before committing ;)
CCMAIL:viranch.mehta@gmail.com
2011-11-01 20:33:13 +01:00
Viranch Mehta
6c19c0b3c4 Aaron's patch for loading system KCMs in scripted plasmoids config dialog by specifying them in the plasmoid's .desktop file 2011-10-31 22:24:39 +05:30
Aaron Seigo
b35d410deb remove the event filter if we're a containment, don't return too early from the filter 2011-07-19 09:38:44 +02:00
Aaron Seigo
239b5a5d10 don't remove the applet itself from the scenevent filter when deregistering as a drag handle
the event filter is also used for things like the applet handle
2011-07-19 09:38:44 +02:00
Aaron Seigo
dd122bc011 move applet handle handling (*cough*) to applet instead of contaiment
much cleaner and eliminates the possibility of odd crashes

BUG:253421
2011-05-28 00:23:37 +02:00
Artur Duque de Souza
97b37637fa Export icon information to package metadata for remote service
Get the original package metadata's icon and inject this information
into the package metadata that is going to be sent to the remote targets.

This way we are able to use the icon in several UIs which makes things
more beautiful ;)

CCMAIL:ervin@kde.org
Signed-off-by: Artur Duque de Souza <asouza@kde.org>
2011-04-28 18:52:34 -03:00
Aaron Seigo
fbb50df067 ensure that the containment configChanged() routine always happens 2011-04-25 16:43:48 +02:00
Aaron Seigo
175d9961ff cache formFactor(), simplify the min size check branch 2011-03-28 10:06:53 +02:00
Marco Martin
beb1f9b6cf use pointers instead of string comparison
use pointers instead of string comparison to figure out what button was pressed
2011-02-09 20:35:15 +01:00
Marco Martin
ab8ec8f17a correct the text used to fugure out the button
button have text like &Ok &Yes
This way to detect what button was pressed of course is horrible and will have to be changed
CCBUG:265738
2011-02-09 19:20:16 +01:00
Marco Martin
11d3b789a4 emit cancel signal
both when clicking cancel and pressing esc
CCBUG:265738
2011-02-09 00:11:25 +01:00
Marco Martin
e193b7eab0 pass clicks trough the busy spinner 2011-02-07 10:49:44 +01:00
Aaron Seigo
318119ef46 remove some well dead code 2011-02-01 10:07:05 -08:00
Aaron Seigo
81c7addc40 a small hack to give us the enabled button 2011-02-01 00:52:07 -08:00
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
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
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
Giulio Camuffo
ccb599572e use QGraphicsScene::sendEvent instead of simply calling the event handler. this allow the containments to have more
control on the moving of the applets installing event filters on them and fixes the moving of the applet Icon in some 
containments

svn path=/trunk/KDE/kdelibs/; revision=1202445
2010-11-30 22:20:34 +00:00
Aaron J. Seigo
8607a13142 clarify, document and fix how immutability (particularly kiosk-based SystemImmutability) is handled
svn path=/trunk/KDE/kdelibs/; revision=1196286
2010-11-12 22:48:31 +00:00
Chani Armitage
cf57b44044 and the winner is: Productivity. our new category :)
svn path=/trunk/KDE/kdelibs/; revision=1195647
2010-11-11 17:37:36 +00:00
Kevin Ottens
d85c4cc7ff Include cleanup.
Based on a patch by Marijn Kruisselbrink.

svn path=/trunk/KDE/kdelibs/; revision=1194730
2010-11-09 17:22:22 +00:00
Aaron J. Seigo
e7f27c4e79 build after transplant to private class
svn path=/trunk/KDE/kdelibs/; revision=1192721
2010-11-03 20:55:23 +00:00
Aaron J. Seigo
92511efde0 * let the Corona know as soon as cleanUpAndDelete is called if we are a Containment
* simplify the path from an Applet being destroyed to cleanUpAndDelete being called

svn path=/trunk/KDE/kdelibs/; revision=1192720
2010-11-03 20:52:13 +00:00
Giulio Camuffo
da9459d009 start always with a default size, otherwise if an applet doesn't resize itself it will freeze plasma
svn path=/trunk/KDE/kdelibs/; revision=1186915
2010-10-17 21:54:40 +00:00
Marco Martin
3c86640b76 check for configLoader before accessing it
svn path=/trunk/KDE/kdelibs/; revision=1182706
2010-10-05 12:57:49 +00:00
Aaron J. Seigo
47a41796cc create the needed metadata fields to publish with more info
svn path=/trunk/KDE/kdelibs/; revision=1182538
2010-10-04 21:10:48 +00:00
Aaron J. Seigo
64bc2af527 SVN_SILENT: pedant
svn path=/trunk/KDE/kdelibs/; revision=1178741
2010-09-23 19:18:16 +00:00
Aaron J. Seigo
b6d4b71680 we enforce immutability in other ways already, try not to get in the way of programmatic manipulation (versus user manipulation) of applets
svn path=/trunk/KDE/kdelibs/; revision=1177864
2010-09-21 14:26:47 +00:00
Aaron J. Seigo
6590d607fd cascade corona -> containment -> applet immutability
svn path=/trunk/KDE/kdelibs/; revision=1177862
2010-09-21 14:21:58 +00:00
Marco Martin
bddd511086 when the config is changed, the config skeleton has to reload the config from the config group again
svn path=/trunk/KDE/kdelibs/; revision=1175737
2010-09-15 18:51:42 +00:00
Aaron J. Seigo
8a74b21168 no longer relevant
svn path=/trunk/KDE/kdelibs/; revision=1173977
2010-09-11 00:47:56 +00:00
Chani Armitage
900f8c6318 don't test isEnabled, it can be changed for >1 reason
svn path=/trunk/KDE/kdelibs/; revision=1171799
2010-09-05 08:03:27 +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
Marco Martin
ac2976dbac store the size for form factor only if not empty
svn path=/trunk/KDE/kdelibs/; revision=1168893
2010-08-27 19:27:19 +00:00