Aaron Seigo
fbde93c64f
give package a cache for found items; make the dptr implicitly shared
...
this drops a 100k loop of copies from ~2700ms to ~37ms and a 100k loop
of copy-n-find from ~3900ms to ~40ms.
the cache addition is predicated on the idea that lookups of the same files will be frequent enough to warrant the small amount of extra memory usage for the cache. if that does not hold in practice (though it appears to) then this will not be a gain and in fact be a small net loss for memory footprint
the dptr change is predicated on the assumption that copies of Package will be frequent, and so must be low cost. this is known to be true. even if it wasn't, there is no down-side to this change. the upside are significant time and memory savings.
2011-07-22 17:24:40 +02:00
Aaron Seigo
bd10c7175e
Merge remote-tracking branch 'origin/master' into libplasma2
...
Conflicts:
plasma/containment.cpp
plasma/package.cpp
plasma/packagestructure.cpp
plasma/private/package_p.h
plasma/scripting/scriptengine.cpp
2011-07-21 15:31:07 +02:00
Aaron Seigo
f3a66f1f79
allow stripping out the name and mimetype data from the package info; only really useful for package introspection (e.g. in plasmate and other such tools) but a waste on mobile
2011-07-21 14:41:01 +02:00
Aaron Seigo
3d5fa3ca43
build, though wallpaper is still broken
2011-07-21 14:39:02 +02:00
Aaron Seigo
4a3ef536e6
private class changes to match the public class usage
2011-07-19 21:52:33 +02:00
Aaron Seigo
32f75b826c
re-port back to PackageStructure
2011-07-19 21:36:57 +02:00
Aaron Seigo
722c77e7ce
move the needed datastructures into Package
2011-07-15 13:03:56 +02:00
Aaron Seigo
abf1b8510f
make the PackageStructures into Package subclasses
2011-07-15 13:03:46 +02:00
Aaron Seigo
889c9e7bd3
adapt to Package merge changes
2011-07-15 13:03:22 +02:00
Aaron Seigo
1dde80056b
no longer provide access to the package from the class, let Package do that; adapt to Package merge
2011-07-15 13:02:15 +02:00
Aaron Seigo
5b2eaf4a7f
PackageStructure is no more
2011-07-15 13:01:28 +02:00
Aaron Seigo
4b3b687088
no longer provide access to the package from the class, let Package do that; adapt to Package merge
2011-07-15 12:59:51 +02:00
Marco Martin
14c3235a17
fix resolution of paths w/ only a packageRoot+name
2011-07-14 14:53:57 +02:00
Montel Laurent
ecc8692c33
Pedantic
2011-07-13 21:46:19 +02:00
Aaron Seigo
41bb1efb74
PackageStructure no longer does widget browser UI
...
too many problems with this: device appropriateness, not all packages are widgets, requires PackageStructure to be a QObject, etc..
2011-07-13 20:27:12 +02:00
Aaron Seigo
0633f2fd28
isPublished no longer required
2011-07-13 20:07:33 +02:00
Aaron Seigo
2f1c50c419
remove unpublish
2011-07-13 20:06:09 +02:00
Aaron Seigo
0fa24619d4
remove publish functionality
2011-07-13 20:05:07 +02:00
Aaron Seigo
e4be1cecf5
simplify down to one constructor and try harder to have all information at all times with clearer code
2011-07-13 20:03:00 +02:00
Aaron Seigo
05834d8144
Merge remote-tracking branch 'origin/master' into libplasma2
...
Conflicts:
plasma/CMakeLists.txt
plasma/abstractrunner.h
plasma/animator.h
plasma/glapplet.h
plasma/package.h
plasma/packagemetadata.h
plasma/packagestructure.h
plasma/tooltipcontent.cpp
plasma/tooltipcontent.h
plasma/wallpaper.h
2011-07-11 21:56:41 +02:00
Aaron Seigo
b29c73f2e1
paint in parent coords, do events in local coords
...
this makes clicking on the window previews accurate (e.g. clicking at the top of them works)
also some code consistency when iterating over the collections and some cleanups
2011-07-11 21:48:56 +02:00
Aaron Seigo
6150c12907
prevent triggering a crash in Qt's text layouting
...
also simplifies code as a fun side effect.
2011-07-11 21:48:56 +02:00
Aaron Seigo
f056d71baa
simplify
2011-07-11 21:48:56 +02:00
Aaron Seigo
656d6df486
--deprecatedUsage;
2011-07-11 21:48:56 +02:00
Dawit Alemayehu
c25f3e4cab
Fixed -Wunused-parameter compiler warning.
...
REVIEW: 101881
2011-07-11 12:45:50 -04:00
Aaron Seigo
bf17cc308a
move BackgroundHints to Plasma::, make it a plain enum
2011-06-24 16:35:09 +02:00
Aaron Seigo
86e6891b25
Merge branch 'plasmadialogshadows' into libplasma2
...
Conflicts:
plasma/animations/pixmaptransition.cpp
plasma/animations/rotation.cpp
2011-06-09 12:48:34 +02:00
Aaron Seigo
8f7b7cda31
shadows on dialogs
2011-06-09 12:46:25 +02:00
Aaron Seigo
ecbca8f142
add bool isUsed() const and remove checkUsage()
2011-06-03 16:04:50 +02:00
Aaron Seigo
69e9b84371
get rid of the redundant jobFinished signal in Service
...
it's a bitch for bindings as well
2011-06-03 13:16:35 +02:00
Aaron Seigo
fa61d11d3c
Merge remote-tracking branch 'origin/master' into libplasma2
...
Conflicts:
plasma/service.cpp
2011-06-03 13:15:36 +02:00
Aaron Seigo
66142028c0
move these around nicely
2011-06-03 13:13:19 +02:00
Aaron Seigo
e06d98147b
use KPluginInfo instead of PackageMetadata
2011-05-31 01:01:37 +02:00
Aaron Seigo
5ca2657a01
publish using a KPluginInfo
2011-05-31 01:01:18 +02:00
Aaron Seigo
d4e058386d
--PackageMetadata;
2011-05-31 01:00:35 +02:00
Aaron Seigo
1210ec313a
--PackageMetadata; and a handful of efficiency improvements as well
2011-05-31 00:28:06 +02:00
Aaron Seigo
b01348aa84
rely on AppletPrivate::remoteLocation (removing the need for PackageMetadata) and make it a proper KUrl
2011-05-31 00:04:03 +02:00
Aaron Seigo
be8b64f95c
don't use PackageMetadata
2011-05-31 00:03:39 +02:00
Aaron Seigo
cd32321b68
Merge branch 'libplasma2_signedpackages' into libplasma2
...
Conflicts:
plasma/package.cpp
2011-05-30 23:41:53 +02:00
Aaron Seigo
4cc44f6a92
Merge remote-tracking branch 'origin/master' into libplasma2
...
Conflicts:
plasma/package.cpp
2011-05-28 00:25:07 +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
Aaron Seigo
840ae26b2d
use QCryptographicHash instead of QCA
2011-05-27 12:26:59 +02:00
Aaron Seigo
5213116b94
remove a usage of QCA in favor of its qt equiv
2011-05-27 12:21:30 +02:00
Aaron Seigo
628b80809f
remove deprecated setWindowToPreview methods
2011-05-27 12:09:19 +02:00
Aaron Seigo
38004e0f9c
remove deprecated version of loadLayout
2011-05-27 12:07:12 +02:00
Aaron Seigo
2b3767a7b5
get rid of deprecate code in Animator
...
i wonder if we have any purpose for Animator at all in QML? perhaps
this moves out with the QGraphicsView stuff
2011-05-26 23:30:58 +02:00
Aaron Seigo
13adc2ddd2
remove some dead code
2011-05-26 23:13:44 +02:00
Aaron Seigo
c77964a6e3
fix compilation
2011-05-26 23:06:45 +02:00
Aaron Seigo
060ef1757b
QHash replaces QMap as the sorting of QMap is pure overhead
2011-05-26 19:01:44 +02:00
Frank Reininghaus
a85aa04ffd
Fix storing binary data in StorageThread::save()
...
This makes the unit test plasma/tests/storagetest pass again :-)
2011-05-21 14:38:08 +02:00