Commit Graph

3498 Commits

Author SHA1 Message Date
Aaron J. Seigo
023ae75d69 allow package structures to say that external paths are ok. defaults to false, though some packagestructures that do not have executable code capabilities (e.g. wallpaper image sets) may wish to take advantage of this
CCBUG:180716

svn path=/trunk/KDE/kdelibs/; revision=911736
2009-01-16 01:02:35 +00:00
Aaron J. Seigo
4bc508411a neat bug: changing Activity type while widgets are locked caused Appearances settings to be permahidden. chased out a few other ways to trigger this once that one was fixed, works nicely now.
BUG:180887

svn path=/trunk/KDE/kdelibs/; revision=911727
2009-01-16 00:39:07 +00:00
Aaron J. Seigo
8056505aa0 more verbosity is helpful in debugging these things
svn path=/trunk/KDE/kdelibs/; revision=911726
2009-01-16 00:32:58 +00:00
Aaron J. Seigo
2b579e6d48 also support listing info (this one won't be backported because it is a BC addition)
svn path=/trunk/KDE/kdelibs/; revision=911625
2009-01-15 19:41:11 +00:00
Aaron J. Seigo
ced5cec1a2 bring into line with Applet::list*; source compat, binary incompat. few users of this, though, and only applications, so impact is nominal. could do it in a BC way by poluting the API with another method that just takes a QString, but we stil have that sliver of a window open before 4.2.0, so use it to keep the API pristine. we can make it ugly after ;)
svn path=/trunk/KDE/kdelibs/; revision=911552
2009-01-15 16:31:23 +00:00
Aaron J. Seigo
6c041a4232 get sizing right when setContent is called and the tip is already visible
BUG:180423

svn path=/trunk/KDE/kdelibs/; revision=911227
2009-01-15 05:59:07 +00:00
Marco Martin
831f2564d8 quite mega-patch:
add a new function FrameSvg::alphaMask() that lets define an alpha-layer
for the frame, that can be the frame itself or a mask- prefix
allow for overlay elements on frames that can do a nice
filigrane-effect, they can either be:
-fixed position at 0,0
-random position consistent across plasma runs (only supported for applet
backgrounds)
-tiled
-scaled

svn path=/trunk/KDE/kdelibs/; revision=910655
2009-01-13 21:46:07 +00:00
Aaron J. Seigo
22179dffbb prevent unnecessary multiple calls to pathChanged, which can be more or less expensive but usually results in hitting disk
svn path=/trunk/KDE/kdelibs/; revision=910610
2009-01-13 19:50:01 +00:00
Aaron J. Seigo
0655ae2e03 slightly more useful debug output
svn path=/trunk/KDE/kdelibs/; revision=910609
2009-01-13 19:49:36 +00:00
Aaron J. Seigo
dd99751e2b SVN_SILENT: coding style!
svn path=/trunk/KDE/kdelibs/; revision=910608
2009-01-13 19:49:19 +00:00
Beat Wolf
ad56e279e2 Don't create submenu for "unlock widgets" if there is only one action in the submenu
svn path=/trunk/KDE/kdelibs/; revision=910410
2009-01-13 11:03:48 +00:00
Aaron J. Seigo
fbd38ee3d9 some hopefully useful debug output
svn path=/trunk/KDE/kdelibs/; revision=909629
2009-01-11 22:35:51 +00:00
Alex Merry
13116aaea9 Don't crash on weirdly invalid SVGs.
The particular problem I was having was that frame->leftWidth was 0 and leftHeight was 0, but
frame->rightWidth was > 0.  And, while trying to paint a 0x0 pixmap is apparently fine
(because QPixmap::isNull() is just (QPixmap::width() == 0)),
QPainter::drawTiledPixmap() tries to do 0 % 0 if you pass it an 8x0 pixmap (which is an
arithmetic error).

And this was happening in KSMServer when displaying the shutdown dialog.
Cue weird behaviour when trying to log out or shut down.


svn path=/trunk/KDE/kdelibs/; revision=909140
2009-01-11 03:48:29 +00:00
Marco Martin
eb7588ae9a forward also editingFinished
patch by Dario Andres
BUG: 180261

svn path=/trunk/KDE/kdelibs/; revision=909009
2009-01-10 19:35:29 +00:00
Chani Armitage
c11707b2ce apparently it's bad to compare to QSize()
svn path=/trunk/KDE/kdelibs/; revision=908661
2009-01-10 04:16:26 +00:00
Chani Armitage
ebfc550c11 a default size for scripted applets, because they aren't allowed to do anything themselves before init (and this is the one thing that *must* be done before init)
svn path=/trunk/KDE/kdelibs/; revision=908612
2009-01-10 00:33:38 +00:00
Aaron J. Seigo
e3745c680a plasmoids -> widgets in this case
svn path=/trunk/KDE/kdelibs/; revision=908605
2009-01-10 00:10:33 +00:00
Alex Merry
9c1570f13e apidocs fixes.
Remember to document ALL parameters to methods.  They may seem obvious to you, but I had to look at the code for at least two of the methods in order to document their parameters correctly.

*waves stick of EBN-ness*


svn path=/trunk/KDE/kdelibs/; revision=908604
2009-01-10 00:08:31 +00:00
Aaron J. Seigo
32d2b4c4c9 small fixes for dragging; i don't think they warrant a backport, though
svn path=/trunk/KDE/kdelibs/; revision=908503
2009-01-09 20:45:28 +00:00
Aaron J. Seigo
c5e44c35d2 if the applet is already in another containment, don't re-animate it as if it were new
svn path=/trunk/KDE/kdelibs/; revision=908501
2009-01-09 20:44:53 +00:00
Alexis Ménard
4e6da919f3 QImage.fill take a uint not a QColor so this color (Qt::transparent enum with 19 as a value) is invalid.
svn path=/trunk/KDE/kdelibs/; revision=908392
2009-01-09 16:50:27 +00:00
Rob Scheepmaker
aea9e0e6d8 Move the QGL resize hacks from extender to extenderapplet. The only applet atm for which this hack is necesarry is actually extenderapplet, in the future we will have better layouts, and it won't be necesarry at all, and for now it avoids breaking panel layouts when removing the last extenderitem from an extenderapplet.
svn path=/trunk/KDE/kdelibs/; revision=908195
2009-01-09 13:13:57 +00:00
Anne-Marie Mahfouf
60fad5ba0b fix test (fix .desktop install path and read() path)
svn path=/trunk/KDE/kdelibs/; revision=908084
2009-01-09 09:23:35 +00:00
Aaron J. Seigo
4e7e534103 * add actions in the order they are added, not alphabetically by name (?!)
* remove actions if they get deleted
CCBUG:30042

svn path=/trunk/KDE/kdelibs/; revision=907996
2009-01-09 02:15:23 +00:00
Aaron J. Seigo
58420aae62 clear the current widget when an widget is unregistered; solves a crash where the task widget disconnects *all* signals to items before deleting them, thus preventing the destroyed(QObject*) signal from getting through. it was calling unregisterWidget, but that wasn't clearing the current widget -> POOF!
CCMAIL:faure@kde.org
BUG:179819

svn path=/trunk/KDE/kdelibs/; revision=907981
2009-01-09 01:15:39 +00:00
Stephan Kulow
f9abcd96e4 anoter case of useless warnings
svn path=/trunk/KDE/kdelibs/; revision=907540
2009-01-08 11:32:55 +00:00
Stephan Kulow
744f3ef721 avoid tons of warnings for empty sizes
svn path=/trunk/KDE/kdelibs/; revision=907537
2009-01-08 11:28:58 +00:00
Stephan Kulow
6e8e615e73 don't create "QEventDispatcherUNIX::unregisterTimer: invalid argument"
svn path=/trunk/KDE/kdelibs/; revision=907536
2009-01-08 11:27:39 +00:00
Aaron J. Seigo
6156b46110 tell the config loader to write its config as well during calls to save()
svn path=/trunk/KDE/kdelibs/; revision=907296
2009-01-07 20:34:34 +00:00
Aaron J. Seigo
b5456b851c bump the minor version number for 4.3
svn path=/trunk/KDE/kdelibs/; revision=907268
2009-01-07 19:15:01 +00:00
Davide Bettio
08104d35ba Added Plasma::SpinBox.
svn path=/trunk/KDE/kdelibs/; revision=907258
2009-01-07 18:54:43 +00:00
Aaron J. Seigo
e009bc7382 protect access to toolbox, when used with containments that don't create one or turn theirs off
BUG:179909

svn path=/trunk/KDE/kdelibs/; revision=907205
2009-01-07 16:42:12 +00:00
Aaron J. Seigo
fe0acf8202 clean this up while we still can. not sure how this one slipped by us, but it's been on my list for a week; no actual logic changes, just cleans out the header of crud that doesn't belong.
svn path=/trunk/KDE/kdelibs/; revision=906780
2009-01-06 21:11:54 +00:00
Aaron J. Seigo
8620f483d8 always make a layout no matter what
svn path=/trunk/KDE/kdelibs/; revision=906713
2009-01-06 18:08:58 +00:00
David Faure
eb686845cb enable-final and compiler warnings fixed
svn path=/trunk/KDE/kdelibs/; revision=906696
2009-01-06 17:06:26 +00:00
Marco Martin
88f9436dbd don't trust size hints, they lie
this makes tooltip sliding a bit more predictable

svn path=/trunk/KDE/kdelibs/; revision=906676
2009-01-06 15:48:54 +00:00
Laurent Montel
eebb6178a5 Fix iterator
svn path=/trunk/KDE/kdelibs/; revision=906617
2009-01-06 13:09:05 +00:00
Script Kiddy
0ced881246 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdelibs/; revision=906578
2009-01-06 12:50:41 +00:00
Aaron J. Seigo
8c8e40c194 if parented to an applet and the appet has a package, use it.
svn path=/trunk/KDE/kdelibs/; revision=906378
2009-01-06 03:45:44 +00:00
Aaron J. Seigo
a9cc2e29b6 provide access to config needs saving
svn path=/trunk/KDE/kdelibs/; revision=906373
2009-01-06 03:02:22 +00:00
Aaron J. Seigo
cf32d4770d make it easy to get at items and values by name
svn path=/trunk/KDE/kdelibs/; revision=906335
2009-01-05 23:27:29 +00:00
Simon Edwards
102cd88d29 BUG: 178354
StyleOption isn't being exported correctly on some versions of gcc.


svn path=/trunk/KDE/kdelibs/; revision=906246
2009-01-05 19:56:30 +00:00
Marco Martin
f3cdd2086b some Q_INVOKABLEs to be used in scripts
svn path=/trunk/KDE/kdelibs/; revision=906199
2009-01-05 19:09:24 +00:00
Aaron J. Seigo
8dd6e79e56 * make it possible to get a list of installed packages by path rather than package name
* allow the basePath to be a symlink

svn path=/trunk/KDE/kdelibs/; revision=906191
2009-01-05 18:49:54 +00:00
Aaron J. Seigo
be4c8c2c5e if an applet overrode configChanged (it is virtual), the keyboard shortcuts wouldn't get picked up; so move that all to a private slot and now configChangedcan be safely used instead of connecting up to the dialog signals yourself as an added bonus
svn path=/trunk/KDE/kdelibs/; revision=906175
2009-01-05 18:08:14 +00:00
Aaron J. Seigo
d8c68f8d5f update the icon when the svg changes
svn path=/trunk/KDE/kdelibs/; revision=906159
2009-01-05 17:34:40 +00:00
Aaron J. Seigo
7648db2c3a remove from build
svn path=/trunk/KDE/kdelibs/; revision=905831
2009-01-05 08:32:27 +00:00
Aaron J. Seigo
22bc5e8a42 no point in having a class with just one consumer (esp now that we require BC)
svn path=/trunk/KDE/kdelibs/; revision=905828
2009-01-05 08:28:23 +00:00
Aaron J. Seigo
0fc67ce435 no point in having a class in the main lib for just one consumer (esp now that we require BC)
svn path=/trunk/KDE/kdelibs/; revision=905827
2009-01-05 08:27:53 +00:00
Aaron J. Seigo
a2ea13a973 bring back ctrl-overrides-aspect-ratio-mode
svn path=/trunk/KDE/kdelibs/; revision=905774
2009-01-05 01:08:40 +00:00