summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qmatrix.h
diff options
context:
space:
mode:
authorMarius Storm-Olsen <marius.storm-olsen@nokia.com>2009-11-05 13:26:32 (GMT)
committerMarius Storm-Olsen <marius.storm-olsen@nokia.com>2009-11-06 14:41:53 (GMT)
commit863369deceeb254ea71724a247953fd0760ae30b (patch)
treeba94847f410cdfcd4f3b43593c0f979c956c4112 /src/gui/painting/qmatrix.h
parent15a21652d178e4a298bb522d777602620cbd9938 (diff)
downloadQt-863369deceeb254ea71724a247953fd0760ae30b.zip
Qt-863369deceeb254ea71724a247953fd0760ae30b.tar.gz
Qt-863369deceeb254ea71724a247953fd0760ae30b.tar.bz2
API review: QMatrix::det() -> QMatrix::determinant(), matching math3d
After an API review of the new math3d classes, the full name was considered better than the short version. Therefore we obsolete the short function, and introduce the longer version. Reviewed-by: Andreas Aardal Hanssen
Diffstat (limited to 'src/gui/painting/qmatrix.h')
-rw-r--r--src/gui/painting/qmatrix.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/painting/qmatrix.h b/src/gui/painting/qmatrix.h
index 8887f0e..152b3c9 100644
--- a/src/gui/painting/qmatrix.h
+++ b/src/gui/painting/qmatrix.h
@@ -101,7 +101,8 @@ public:
QMatrix &rotate(qreal a);
bool isInvertible() const { return !qFuzzyIsNull(_m11*_m22 - _m12*_m21); }
- qreal det() const { return _m11*_m22 - _m12*_m21; }
+ qreal determinant() const { return _m11*_m22 - _m12*_m21; }
+ QT_DEPRECATED qreal det() const { return _m11*_m22 - _m12*_m21; }
QMatrix inverted(bool *invertible = 0) const;