void TouchDial::setValue(const double &value) { m_value = value; if(m_value < m_minimumValue) m_value = m_minimumValue; if(m_value > m_maximumValue) m_value = m_maximumValue; emit valueChanged(m_value); updateDial(); }
TouchDial::TouchDial(QWidget *parent) : QWidget(parent), m_minimumValue(-1.0), m_maximumValue(1.0), m_value(0.0), m_label(0xFFFF), m_readOnly(false) { updateDial(); }
void CPetConversations::timerExpired(int val) { if (val == 1) { CPetSection::timerExpired(val); } else { CString name = _field418 ? _npcName : getActiveNPCName(); for (int idx = 0; idx < TOTAL_DIALS; ++idx) { if (!_dials[idx].hasActiveMovie()) updateDial(idx, name); } } }
void TouchDial::setMaximumValue(const double &maximumValue) { m_maximumValue = maximumValue; updateDial(); }
void TouchDial::resizeEvent(QResizeEvent *event) { updateDial(); }