Permalink
Browse files

qmlui: add Cue list widget intensity control

So it can be adjusted with a submaster
  • Loading branch information...
mcallegari committed Dec 16, 2018
1 parent 577d540 commit 123922849505cc7a2a59dc9011e7910d7542c539
Showing with 21 additions and 1 deletion.
  1. +18 −0 qmlui/virtualconsole/vccuelist.cpp
  2. +3 −1 qmlui/virtualconsole/vccuelist.h
@@ -130,6 +130,24 @@ bool VCCueList::copyFrom(const VCWidget *widget)
return VCWidget::copyFrom(widget);
}

void VCCueList::adjustIntensity(qreal val)
{
Chaser *ch = chaser();
if (ch != nullptr)
{
adjustFunctionIntensity(ch, val);

// Refresh intensity of current steps
if (!ch->stopped() && sideFaderMode() == Crossfade && m_sideFaderLevel != 100)
{
ch->adjustStepIntensity(qreal(m_sideFaderLevel) / 100, m_primaryTop ? m_playbackIndex : m_nextStepIndex);
ch->adjustStepIntensity(qreal(100 - m_sideFaderLevel) / 100, m_primaryTop ? m_nextStepIndex : m_playbackIndex);
}
}

VCWidget::adjustIntensity(val);
}

/*********************************************************************
* UI settings
*********************************************************************/
@@ -77,6 +77,9 @@ class VCCueList : public VCWidget
/** @reimp */
VCWidget *createCopy(VCWidget *parent);

/** @reimp */
void adjustIntensity(qreal val);

protected:
/** @reimp */
bool copyFrom(const VCWidget* widget);
@@ -263,7 +266,6 @@ public slots:
/*********************************************************************
* Load & Save
*********************************************************************/

public:
/** @reimp */
bool loadXML(QXmlStreamReader &root);

0 comments on commit 1239228

Please sign in to comment.