src/gui/painting/qtransform.h
changeset 19 fcece45ef507
parent 18 2f34d5167611
equal deleted inserted replaced
18:2f34d5167611 19:fcece45ef507
   291     affine._m22 *= num;
   291     affine._m22 *= num;
   292     m_23        *= num;
   292     m_23        *= num;
   293     affine._dx  *= num;
   293     affine._dx  *= num;
   294     affine._dy  *= num;
   294     affine._dy  *= num;
   295     m_33        *= num;
   295     m_33        *= num;
   296     m_dirty     |= TxScale;
   296     if (m_dirty < TxScale)
       
   297         m_dirty = TxScale;
   297     return *this;
   298     return *this;
   298 }
   299 }
   299 inline QTransform &QTransform::operator/=(qreal div)
   300 inline QTransform &QTransform::operator/=(qreal div)
   300 {
   301 {
   301     if (div == 0)
   302     if (div == 0)
   314     affine._m22 += num;
   315     affine._m22 += num;
   315     m_23        += num;
   316     m_23        += num;
   316     affine._dx  += num;
   317     affine._dx  += num;
   317     affine._dy  += num;
   318     affine._dy  += num;
   318     m_33        += num;
   319     m_33        += num;
   319     m_dirty     |= TxProject;
   320     m_dirty     = TxProject;
   320     return *this;
   321     return *this;
   321 }
   322 }
   322 inline QTransform &QTransform::operator-=(qreal num)
   323 inline QTransform &QTransform::operator-=(qreal num)
   323 {
   324 {
   324     if (num == 0)
   325     if (num == 0)
   330     affine._m22 -= num;
   331     affine._m22 -= num;
   331     m_23        -= num;
   332     m_23        -= num;
   332     affine._dx  -= num;
   333     affine._dx  -= num;
   333     affine._dy  -= num;
   334     affine._dy  -= num;
   334     m_33        -= num;
   335     m_33        -= num;
   335     m_dirty     |= TxProject;
   336     m_dirty     = TxProject;
   336     return *this;
   337     return *this;
   337 }
   338 }
   338 
   339 
   339 inline bool qFuzzyCompare(const QTransform& t1, const QTransform& t2)
   340 inline bool qFuzzyCompare(const QTransform& t1, const QTransform& t2)
   340 {
   341 {