Пример #1
0
void MOOptVector::setCurPoint(int curPoint)
{
    if(_usePoints && (curPoint!=_curPoint))
    {
        _curPoint = curPoint;
        emit curScanChanged();
        reset();
    }
}
Пример #2
0
void MOOptVector::setCurScan(int curScan)
{
    if(_useScan && (curScan!=_curScan))
    {
        _curScan = curScan;
        emit curScanChanged();
        reset();
    }
}
Пример #3
0
void MOOptVector::setCurScan(int curScan)
{
    if(_useScan && (curScan!=_curScan))
    {
        _curScan = curScan;
        emit curScanChanged();
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
        // no idea how to use reset() in qt5 TODO! FIXME!
#else
        reset();
#endif
    }
}