Plasma/PortingTolibplasma2: Difference between revisions
< Plasma
No edit summary |
|||
Line 23: | Line 23: | ||
* layoutContainment is now virtual (no actual porting required; it is still a protected slot) | * layoutContainment is now virtual (no actual porting required; it is still a protected slot) | ||
* importLayout(const KConfigBase &config) was removed in favor of importLayout(const KConfigGroup &config) | * importLayout(const KConfigBase &config) was removed in favor of importLayout(const KConfigGroup &config) | ||
== PackageMetadata == | |||
* PackageMetadata was removed. It is replaced everywhere with KPluginInfo, except in AccessManager where a new class, RemoteObjectDescription, is used. | |||
== PackageStructure == | == PackageStructure == |
Revision as of 23:05, 30 May 2011
AbstractRunner
- init() is now virtual; does not need to be a slot
- mimeDataForMatch is now virtual; does not need to be a slot
- mimeDataForMatch is now passed the QueryMatch by reference rather than as a pointer
AbstractToolBox
- protected Q_SLOTS that were used as virtual methods (restore, save, reposition) are now proper virtuals
Applet
- listAppletInfoForMimetype becomes listAppletInfoForMimeType
Containment
- listContainmentsForMimetype becomes listContainmentsForMimeType
- context() was removed
- setActivity(QString) and activity() now use activity IDs rather than names
- zoomRequested signal was removed
- QGraphicsItem *toolBoxItem() was removed
Context
- Plasma::Context has been removed; the Activity DataEngines or KActivity* classes should be used instead.
Corona
- layoutContainment is now virtual (no actual porting required; it is still a protected slot)
- importLayout(const KConfigBase &config) was removed in favor of importLayout(const KConfigGroup &config)
PackageMetadata
- PackageMetadata was removed. It is replaced everywhere with KPluginInfo, except in AccessManager where a new class, RemoteObjectDescription, is used.
PackageStructure
- setMimetypes -> setMimeTypes
- setDefaultMimetypes -> setDefaultMimeTypes
- mimetypes(const char*) -> mimeTypes(const char*)
- sePrefix/prefix were removed in preference of the multi-path setPrefixPaths/prefixPaths
Plasma Namespace
- ContextConstraint is no longer a member of the Plasma::Constraint enumeration
Service
- parametersFromDescription now returns an unsorted QHash rather than a QMap
- creatJob now takes a QHash instead of a QMap
ServiceJob
- QMaps have been replaced with QHashes
ScrollWidget
- [un]registerAsScrollWidget removed
ToolTipContent
- setWidowToPreview/windowToPreview was removed; instead, use setWindowsToPreview/windowsToPreview which support more than one window id being passed in
Wallpaper
- listWallpapersForMimetype becomes listWallpapersForMimeType