equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the QtGui module of the Qt Toolkit. |
7 ** This file is part of the QtGui module of the Qt Toolkit. |
8 ** |
8 ** |
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 { |