Author: coolo Date: Thu Jan 24 20:26:43 2008 New Revision: 43896 URL: http://svn.opensuse.org/viewcvs/yast?rev=43896&view=rev Log: also select city while zooming (bnc#355559) Modified: trunk/qt/src/YQTimezoneSelector.cc Modified: trunk/qt/src/YQTimezoneSelector.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/YQTimezoneSelector.cc?rev=43896&r1=43895&r2=43896&view=diff ============================================================================== --- trunk/qt/src/YQTimezoneSelector.cc (original) +++ trunk/qt/src/YQTimezoneSelector.cc Thu Jan 24 20:26:43 2008 @@ -197,22 +197,22 @@ } else if ( event->button() == Qt::LeftButton ) { + d->_best = d->findBest( event->pos() ); + if ( d->_zoom.isNull() ) { QPoint click = event->pos(); /* keep the zoom point in unscaled math */ d->_zoom.rx() = (int) ( double( click.x() ) * d->_pix.width() / width() ); d->_zoom.ry() = (int) ( double( click.y() ) * d->_pix.height() / height() ); - d->cachePix = QPixmap(); - } else { - d->_best = d->findBest( event->pos() ); - d->cachePix = QPixmap(); + } - if ( notify() ) - YQUI::ui()->sendEvent( new YWidgetEvent( this, YEvent::ValueChanged ) ); + d->cachePix = QPixmap(); - d->blink->start(); - } + if ( notify() ) + YQUI::ui()->sendEvent( new YWidgetEvent( this, YEvent::ValueChanged ) ); + + d->blink->start(); } else return; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org