src/gui/graphicsview/qgraphicstransform.cpp
changeset 37 758a864f9613
parent 18 2f34d5167611
equal deleted inserted replaced
36:ef0373b55136 37:758a864f9613
   265     Q_D(QGraphicsScale);
   265     Q_D(QGraphicsScale);
   266     if (d->xScale == scale)
   266     if (d->xScale == scale)
   267         return;
   267         return;
   268     d->xScale = scale;
   268     d->xScale = scale;
   269     update();
   269     update();
       
   270     emit xScaleChanged();
   270     emit scaleChanged();
   271     emit scaleChanged();
   271 }
   272 }
   272 
   273 
   273 /*!
   274 /*!
   274     \property QGraphicsScale::yScale
   275     \property QGraphicsScale::yScale
   291     Q_D(QGraphicsScale);
   292     Q_D(QGraphicsScale);
   292     if (d->yScale == scale)
   293     if (d->yScale == scale)
   293         return;
   294         return;
   294     d->yScale = scale;
   295     d->yScale = scale;
   295     update();
   296     update();
       
   297     emit yScaleChanged();
   296     emit scaleChanged();
   298     emit scaleChanged();
   297 }
   299 }
   298 
   300 
   299 /*!
   301 /*!
   300     \property QGraphicsScale::zScale
   302     \property QGraphicsScale::zScale
   317     Q_D(QGraphicsScale);
   319     Q_D(QGraphicsScale);
   318     if (d->zScale == scale)
   320     if (d->zScale == scale)
   319         return;
   321         return;
   320     d->zScale = scale;
   322     d->zScale = scale;
   321     update();
   323     update();
       
   324     emit zScaleChanged();
   322     emit scaleChanged();
   325     emit scaleChanged();
   323 }
   326 }
   324 
   327 
   325 /*!
   328 /*!
   326     \reimp
   329     \reimp
   337     \fn QGraphicsScale::originChanged()
   340     \fn QGraphicsScale::originChanged()
   338 
   341 
   339     QGraphicsScale emits this signal when its origin changes.
   342     QGraphicsScale emits this signal when its origin changes.
   340 
   343 
   341     \sa QGraphicsScale::origin
   344     \sa QGraphicsScale::origin
       
   345 */
       
   346 
       
   347 /*!
       
   348     \fn QGraphicsScale::xScaleChanged()
       
   349     \since 4.7
       
   350 
       
   351     This signal is emitted whenever the \l xScale property changes.
       
   352 */
       
   353 
       
   354 /*!
       
   355     \fn QGraphicsScale::yScaleChanged()
       
   356     \since 4.7
       
   357 
       
   358     This signal is emitted whenever the \l yScale property changes.
       
   359 */
       
   360 
       
   361 /*!
       
   362     \fn QGraphicsScale::zScaleChanged()
       
   363     \since 4.7
       
   364 
       
   365     This signal is emitted whenever the \l zScale property changes.
   342 */
   366 */
   343 
   367 
   344 /*!
   368 /*!
   345     \fn QGraphicsScale::scaleChanged()
   369     \fn QGraphicsScale::scaleChanged()
   346 
   370