Mercurial > projects > qtd
comparison qt/d2/qt/core/QSize.d @ 325:b460cd08041f signals
dmd 2.037 opEquals bug-feature
author | eldar1@eldar1-laptop |
---|---|
date | Wed, 30 Dec 2009 11:25:07 +0000 |
parents | 463563fc9e17 |
children |
comparison
equal
deleted
inserted
replaced
324:0cc996b7a601 | 325:b460cd08041f |
---|---|
89 { wd-=s.wd; ht-=s.ht; return this; } | 89 { wd-=s.wd; ht-=s.ht; return this; } |
90 | 90 |
91 QSize opMulAssign(qreal c) | 91 QSize opMulAssign(qreal c) |
92 { wd = qRound(wd*c); ht = qRound(ht*c); return this; } | 92 { wd = qRound(wd*c); ht = qRound(ht*c); return this; } |
93 | 93 |
94 bool opEquals(ref QSize s) | 94 bool opEquals(ref const QSize s) const |
95 { return wd == s.wd && ht == s.ht; } | 95 { return wd == s.wd && ht == s.ht; } |
96 | 96 |
97 QSize opAdd(ref QSize s) | 97 QSize opAdd(ref QSize s) |
98 { return QSize(this.wd+s.wd, this.ht+s.ht); } | 98 { return QSize(this.wd+s.wd, this.ht+s.ht); } |
99 | 99 |
223 { wd -= s.wd; ht -= s.ht; return this; } | 223 { wd -= s.wd; ht -= s.ht; return this; } |
224 | 224 |
225 QSizeF opMulAssign(qreal c) | 225 QSizeF opMulAssign(qreal c) |
226 { wd *= c; ht *= c; return this; } | 226 { wd *= c; ht *= c; return this; } |
227 | 227 |
228 bool opEquals(ref QSizeF s) | 228 bool opEquals(ref const QSizeF s) const |
229 { return qFuzzyCompare(wd, s.wd) && qFuzzyCompare(ht, s.ht); } | 229 { return qFuzzyCompare(wd, s.wd) && qFuzzyCompare(ht, s.ht); } |
230 | 230 |
231 QSizeF opAdd(ref QSizeF s) | 231 QSizeF opAdd(ref QSizeF s) |
232 { return QSizeF(this.wd+s.wd, this.ht+s.ht); } | 232 { return QSizeF(this.wd+s.wd, this.ht+s.ht); } |
233 | 233 |