remove preferredToolBoxPlugin
This commit is contained in:
parent
054f443469
commit
45c55b22b2
@ -213,16 +213,7 @@ QRegion Corona::availableScreenRegion(int id) const
|
|||||||
|
|
||||||
void Corona::loadDefaultLayout()
|
void Corona::loadDefaultLayout()
|
||||||
{
|
{
|
||||||
}
|
//Default implementation does nothing
|
||||||
|
|
||||||
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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ImmutabilityType Corona::immutability() const
|
ImmutabilityType Corona::immutability() const
|
||||||
|
@ -144,15 +144,6 @@ public:
|
|||||||
*/
|
*/
|
||||||
QHash<QString, QString> defaultContainmentActionsPlugins(ContainmentType containmentType) const;
|
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
|
* Imports an applet layout from a config file. The results will be added to the
|
||||||
* current set of Containments.
|
* current set of Containments.
|
||||||
@ -257,14 +248,6 @@ protected:
|
|||||||
**/
|
**/
|
||||||
virtual void loadDefaultLayout();
|
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:
|
private:
|
||||||
CoronaPrivate *const d;
|
CoronaPrivate *const d;
|
||||||
|
|
||||||
|
@ -63,7 +63,6 @@ public:
|
|||||||
QHash<uint, QGraphicsWidget*> offscreenWidgets;
|
QHash<uint, QGraphicsWidget*> offscreenWidgets;
|
||||||
KActionCollection actions;
|
KActionCollection actions;
|
||||||
QMap<Plasma::ContainmentType, QHash<QString, QString> > containmentActionsDefaults;
|
QMap<Plasma::ContainmentType, QHash<QString, QString> > containmentActionsDefaults;
|
||||||
QHash<Plasma::ContainmentType, QString> toolBoxPlugins;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user