X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Feffectslist.h;h=9654b5bb6174fb19fe077afe770dc2c09ca3a482;hb=3d9ff40b713934e307b6ac7808bd8d56d0bd66f7;hp=7119448c2ab3546945939851e0abbbda90bd518b;hpb=f4699aef75ea62acb69ad499317493facdef04df;p=kdenlive diff --git a/src/effectslist.h b/src/effectslist.h index 7119448c..9654b5bb 100644 --- a/src/effectslist.h +++ b/src/effectslist.h @@ -72,11 +72,11 @@ public: QDomElement itemFromIndex(int ix) const; QDomElement insert(QDomElement effect); void updateEffect(QDomElement effect); - static bool hasKeyFrames(QDomElement effect); - static bool hasSimpleKeyFrames(QDomElement effect); - static bool hasGeometryKeyFrames(QDomElement effect); + static bool hasKeyFrames(const QDomElement &effect); + static bool hasSimpleKeyFrames(const QDomElement &effect); + static bool hasGeometryKeyFrames(const QDomElement &effect); static void setParameter(QDomElement effect, const QString &name, const QString &value); - static QString parameter(QDomElement effect, const QString &name); + static QString parameter(const QDomElement &effect, const QString &name); /** @brief Change the value of a 'property' element from the effect node. */ static void setProperty(QDomElement effect, const QString &name, const QString &value); /** @brief Rename a 'property' element from the effect node. */ @@ -93,7 +93,7 @@ public: /** @brief Update all effects indexes to make sure they are 1, 2, 3, ... */ void updateIndexes(QDomNodeList effects, int startIndex); /** @brief Enable / disable a list of effects */ - void enableEffects(QList indexes, bool disable); + void enableEffects(const QList &indexes, bool disable); private: QDomElement m_baseElement;