git-svn-id: svn://db.shs.com.ru/libs@368 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -601,6 +601,8 @@ void BlockView::wheelEvent(QWheelEvent * e) {
|
||||
if (e->modifiers().testFlag(Qt::ControlModifier)) {
|
||||
double scl = 1. - e->delta() / 500.;
|
||||
//scale(scl, scl);
|
||||
if (!is_nav_anim || (nav_anim.state() != QPropertyAnimation::Running))
|
||||
nav_target = _nav();
|
||||
QRectF r = nav_target;
|
||||
double cx = double(e->pos().x()) / viewport()->width(), cy = double(e->pos().y()) / viewport()->height();
|
||||
double pw = r.width(), ph = r.height();
|
||||
|
||||
Reference in New Issue
Block a user