예제 #1
0
void QQuickWheelArea::setVerticalValue(qreal value)
{
    value = qBound<qreal>(m_verticalMinimumValue, value, m_verticalMaximumValue);

    if (value != m_verticalValue) {
        m_verticalValue = value;
        emit verticalValueChanged();
    }
}
 void GLControlFrame::newVValue(double newValue) {
     m_vWheel->setRange(newValue - 10, newValue + 10, 1);
     emit verticalValueChanged(newValue);
 }