Mercurial > projects > qtd
diff 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 |
line wrap: on
line diff
--- a/qt/d2/qt/core/QSize.d Fri Nov 13 20:42:51 2009 +0000 +++ b/qt/d2/qt/core/QSize.d Sun Nov 22 11:01:19 2009 +0000 @@ -113,7 +113,18 @@ assert(!qFuzzyCompare(c + 1, 1.)); return QSize(qRound(this.wd/c), qRound(this.ht/c)); } + + // service stuff + public alias void __isNativeValueType; + struct QTypeInfo + { + enum bool isComplex = true; + enum bool isStatic = false; + enum bool isLarge = true; + enum bool isPointer = false; + enum bool isDummy = false; + } private: int wd; int ht; @@ -238,7 +249,18 @@ assert(!qFuzzyCompare(c + 1, 1.)); return QSizeF(this.wd/c, this.ht/c); } + + // service stuff + public alias void __isNativeValueType; + struct QTypeInfo + { + enum bool isComplex = true; + enum bool isStatic = false; + enum bool isLarge = true; + enum bool isPointer = false; + enum bool isDummy = false; + } private: qreal wd; qreal ht;