Mercurial > projects > qtd
comparison qt/d2/qt/core/QSize.d @ 295:463563fc9e17 signals
more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
author | eldar |
---|---|
date | Sun, 22 Nov 2009 11:01:19 +0000 |
parents | 3dadfee97421 |
children | b460cd08041f |
comparison
equal
deleted
inserted
replaced
294:bb37b0ed94c9 | 295:463563fc9e17 |
---|---|
111 | 111 |
112 QSize opDiv(qreal c) { | 112 QSize opDiv(qreal c) { |
113 assert(!qFuzzyCompare(c + 1, 1.)); | 113 assert(!qFuzzyCompare(c + 1, 1.)); |
114 return QSize(qRound(this.wd/c), qRound(this.ht/c)); | 114 return QSize(qRound(this.wd/c), qRound(this.ht/c)); |
115 } | 115 } |
116 | 116 |
117 // service stuff | |
118 public alias void __isNativeValueType; | |
119 | |
120 struct QTypeInfo | |
121 { | |
122 enum bool isComplex = true; | |
123 enum bool isStatic = false; | |
124 enum bool isLarge = true; | |
125 enum bool isPointer = false; | |
126 enum bool isDummy = false; | |
127 } | |
117 private: | 128 private: |
118 int wd; | 129 int wd; |
119 int ht; | 130 int ht; |
120 } | 131 } |
121 | 132 |
236 QSizeF opDiv(qreal c) | 247 QSizeF opDiv(qreal c) |
237 { | 248 { |
238 assert(!qFuzzyCompare(c + 1, 1.)); | 249 assert(!qFuzzyCompare(c + 1, 1.)); |
239 return QSizeF(this.wd/c, this.ht/c); | 250 return QSizeF(this.wd/c, this.ht/c); |
240 } | 251 } |
241 | 252 |
253 // service stuff | |
254 public alias void __isNativeValueType; | |
255 | |
256 struct QTypeInfo | |
257 { | |
258 enum bool isComplex = true; | |
259 enum bool isStatic = false; | |
260 enum bool isLarge = true; | |
261 enum bool isPointer = false; | |
262 enum bool isDummy = false; | |
263 } | |
242 private: | 264 private: |
243 qreal wd; | 265 qreal wd; |
244 qreal ht; | 266 qreal ht; |
245 } | 267 } |
246 | 268 |