- CollapsibleEffect *effectToMove = getEffectByIndex(currentIndexes.at(0));
- if (effectToMove == NULL) return;
-
- QDomElement oldeffect = effectToMove->effect();
- QDomElement neweffect = oldeffect.cloneNode().toElement();
-
- EffectInfo effectinfo;
- effectinfo.fromString(oldeffect.attribute("kdenlive_info"));
- effectinfo.groupIndex = groupIndex;
- effectinfo.groupName = groupName;
- neweffect.setAttribute("kdenlive_info", effectinfo.toString());
-
- if (oldeffect.attribute("kdenlive_info") != effectinfo.toString()) {
- // effect's group info or collapsed state changed
- ItemInfo info;
- if (m_effectMetaInfo.trackMode) {
- info.track = m_trackInfo.type;
- info.cropDuration = GenTime(m_trackInfo.duration, KdenliveSettings::project_fps());
- info.cropStart = GenTime(0);
- info.startPos = GenTime(-1);
- info.track = 0;
- emit updateEffect(NULL, m_trackindex, oldeffect, neweffect, effectToMove->effectIndex(),false);
- } else {
- emit updateEffect(m_clipref, -1, oldeffect, neweffect, effectToMove->effectIndex(),false);
- }
- }
+ CollapsibleEffect *effectToMove = getEffectByIndex(currentIndexes.at(0));
+ if (effectToMove == NULL) return;
+
+ QDomElement oldeffect = effectToMove->effect();
+ QDomElement neweffect = oldeffect.cloneNode().toElement();
+
+ EffectInfo effectinfo;
+ effectinfo.fromString(oldeffect.attribute("kdenlive_info"));
+ effectinfo.groupIndex = groupIndex;
+ effectinfo.groupName = groupName;
+ neweffect.setAttribute("kdenlive_info", effectinfo.toString());
+
+ if (oldeffect.attribute("kdenlive_info") != effectinfo.toString()) {
+ // effect's group info or collapsed state changed
+ ItemInfo info;
+ if (m_effectMetaInfo.trackMode) {
+ info.track = m_trackInfo.type;
+ info.cropDuration = GenTime(m_trackInfo.duration, KdenliveSettings::project_fps());
+ info.cropStart = GenTime(0);
+ info.startPos = GenTime(-1);
+ info.track = 0;
+ emit updateEffect(NULL, m_trackindex, oldeffect, neweffect, effectToMove->effectIndex(),false);
+ } else {
+ emit updateEffect(m_clipref, -1, oldeffect, neweffect, effectToMove->effectIndex(),false);
+ }
+ }