mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
plasma: do not deep-copy the Plasma::Applet::action() and Plasma::Applet::addAction() arguments
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
7d56c26074
commit
e66a124829
2 changed files with 4 additions and 4 deletions
|
@ -1363,12 +1363,12 @@ QList<QAction*> Applet::contextualActions()
|
|||
return d->script ? d->script->contextualActions() : QList<QAction*>();
|
||||
}
|
||||
|
||||
QAction *Applet::action(QString name) const
|
||||
QAction *Applet::action(const QString &name) const
|
||||
{
|
||||
return d->actions->action(name);
|
||||
}
|
||||
|
||||
void Applet::addAction(QString name, QAction *action)
|
||||
void Applet::addAction(const QString &name, QAction *action)
|
||||
{
|
||||
d->actions->addAction(name, action);
|
||||
}
|
||||
|
|
|
@ -482,12 +482,12 @@ class PLASMA_EXPORT Applet : public QGraphicsWidget
|
|||
/**
|
||||
* Returns the QAction with the given name from our collection
|
||||
*/
|
||||
Q_INVOKABLE QAction *action(QString name) const;
|
||||
Q_INVOKABLE QAction *action(const QString &name) const;
|
||||
|
||||
/**
|
||||
* Adds the action to our collection under the given name
|
||||
*/
|
||||
void addAction(QString name, QAction *action);
|
||||
void addAction(const QString &name, QAction *action);
|
||||
|
||||
/**
|
||||
* Sets the BackgroundHints for this applet @see BackgroundHint
|
||||
|
|
Loading…
Add table
Reference in a new issue