int ScrollZoomer::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QwtPlotZoomer::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: scrollBarMoved((*reinterpret_cast< Qt::Orientation(*)>(_a[1])),(*reinterpret_cast< double(*)>(_a[2])),(*reinterpret_cast< double(*)>(_a[3]))); break; default: ; } _id -= 1; } return _id; }
void ScrollZoomer::moveToHPosition(double x, bool center) { if (center) x -= zoomRect().width() / 2; scrollBarMoved(Qt::Horizontal, x, 0); }