void CSliderMultiPos::initMembers(void){

    lastPressedIndex = INVALID_INDEX;

    blockTracking = false;
    movement = FreeMovement;
    offset = 0;
    tempPosition = 0;
    toolTipIndicateValue = true;
    previousMousePos = QPoint(0,0);

//    spanColor << QColor(0,0,255) << QColor(0,255,0) << QColor(255,255,0);
//    spanColor << QColor(255,127,0) << QColor(255,0,0) << QColor(255,255,255);

    displayPosition = false;
    displayPositionOffset = QPoint(3,-7);
    displayIntervalLabel = false;
    intervalLabelPrefix = "#";

    //connect(this, SIGNAL(rangeChanged(int, int)), this,SLOT(updateRange(int, int)) );
    connect(this, SIGNAL(sliderReleased()), this,SLOT(movePressedHandle()) );
}
Exemple #2
0
/*!
    Constructs a new QxtSpanSlider with \a orientation and \a parent.
 */
QxtSpanSlider::QxtSpanSlider(Qt::Orientation orientation, QWidget* parent) : QSlider(orientation, parent)
{
    QXT_INIT_PRIVATE(QxtSpanSlider);
    connect(this, SIGNAL(rangeChanged(int, int)), &qxt_d(), SLOT(updateRange(int, int)));
    connect(this, SIGNAL(sliderReleased()), &qxt_d(), SLOT(movePressedHandle()));
}