Mon May 11 22:19:30 CEST 2009 Tobias Rautenkranz * document setf & cleanup diff -rN -u old-doc/qt.docbook new-doc/qt.docbook --- old-doc/qt.docbook 2014-10-30 07:13:19.000000000 +0100 +++ new-doc/qt.docbook 2014-10-30 07:13:20.000000000 +0100 @@ -88,9 +88,9 @@
Variant -A qt:variant can be constructed with qt:make-variant +A qt:variant can be constructed with qt:make-variant or to pass a Lisp object with qt:make-lisp-variant. -Its value is returned by qt:from-variant. +Its value is returned by qt:value.
diff -rN -u old-doc/smoke.docbook new-doc/smoke.docbook --- old-doc/smoke.docbook 2014-10-30 07:13:19.000000000 +0100 +++ new-doc/smoke.docbook 2014-10-30 07:13:20.000000000 +0100 @@ -56,25 +56,40 @@
Overload Resolution -C++ style overload resolution with conversion sequences is under development, -but already usable. For example this: +C++ style overload resolution with conversion sequences is suppored. For example this: -(cxx:set-pen (make-instance 'qt:painter) - (make-instance 'qt:color :args '("green"))) +(cxx:set-pen (make-instance 'qt:painter) (make-instance 'qt:color :args '("green"))) is equivalent to: -(cxx:set-pen (make-instance 'qt:painter) "green") +(cxx:set-pen (make-instance 'qt:painter) "green") In the second case a temporary qt:color instance is implicitly created.
-
defmethod +
Setter Methods + +Instead of calling a setter method that takes no additional arguments, + + +(cxx:set-object-name (make-instance 'qt:object) "foo") + + +you can use its setfable getter. + + +(setf (cxx:object-name (make-instance 'qt:object)) "foo") + + + +
+ +
<code>defmethod</code> You can extend the :cxx generic functions by adding methods. :around, :before, :after @@ -101,7 +116,7 @@
Operators -Insted of using the various cxx:operator methods you can use their Lisp equivalent +Instead of using the various cxx:operator methods you can use their Lisp equivalent in the :cxx package. cxx:> @@ -144,9 +159,12 @@ which is equivalent to the C++ code QByteArray::number(37);. Or with: -(cxx:number (find-class 'qt:byte-array) 37) +(cxx:number (find-class 'qt:byte-array) 37) + +or: + +(cxx:number (make-instance 'qt:byte-array) 37) -