X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Feffectslist.h;h=2ef55f0f4bdaf82263e2c3f57a5b3eb59b82fda6;hb=c3302003093710ee247ad84c0fe2ef3c579d417f;hp=7119448c2ab3546945939851e0abbbda90bd518b;hpb=af4fd26ba0a921d518c27367ef983f8436fba8b0;p=kdenlive diff --git a/src/effectslist.h b/src/effectslist.h index 7119448c..2ef55f0f 100644 --- a/src/effectslist.h +++ b/src/effectslist.h @@ -71,12 +71,12 @@ public: void removeAt(int ix); 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); + void updateEffect(const 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. */ @@ -89,11 +89,11 @@ public: static void removeMetaProperties(QDomElement producer); void clearList(); /** @brief Get am effect with effect index equal to ix. */ - QDomElement effectFromIndex(QDomNodeList effects, int ix); + QDomElement effectFromIndex(const QDomNodeList &effects, int ix); /** @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;