remove preferredToolBoxPlugin

This commit is contained in:
Marco Martin 2013-03-13 11:12:18 +01:00
parent 054f443469
commit 45c55b22b2
3 changed files with 1 additions and 28 deletions

View File

@ -213,16 +213,7 @@ QRegion Corona::availableScreenRegion(int id) const
void Corona::loadDefaultLayout()
{
}
void Corona::setPreferredToolBoxPlugin(const Plasma::ContainmentType type, const QString &plugin)
{
d->toolBoxPlugins[type] = plugin;
}
QString Corona::preferredToolBoxPlugin(const Plasma::ContainmentType type) const
{
return d->toolBoxPlugins.value(type);
//Default implementation does nothing
}
ImmutabilityType Corona::immutability() const

View File

@ -144,15 +144,6 @@ public:
*/
QHash<QString, QString> defaultContainmentActionsPlugins(ContainmentType containmentType) const;
/**
* Returns the name of the preferred plugin to be used as containment toolboxes.
* CustomContainments and CustomPanelContainments can still override it as their liking. It's also not guaranteed that the plugin will actually exist.
*
* @param type the containment type of which we want to know the associated toolbox plugin
* @since 4.6
*/
QString preferredToolBoxPlugin(const ContainmentType type) const;
/**
* Imports an applet layout from a config file. The results will be added to the
* current set of Containments.
@ -257,14 +248,6 @@ protected:
**/
virtual void loadDefaultLayout();
/**
* @return The preferred toolbox plugin name for a given containment type.
* @param type the containment type of which we want to know the preferred toolbox plugin.
* @param plugin the toolbox plugin name
* @since 4.6
*/
void setPreferredToolBoxPlugin(const ContainmentType type, const QString &plugin);
private:
CoronaPrivate *const d;

View File

@ -63,7 +63,6 @@ public:
QHash<uint, QGraphicsWidget*> offscreenWidgets;
KActionCollection actions;
QMap<Plasma::ContainmentType, QHash<QString, QString> > containmentActionsDefaults;
QHash<Plasma::ContainmentType, QString> toolBoxPlugins;
};
}