[Kde-bindings] Smoke Qt 4.6 classes

David Palacio dpalacio at uninorte.edu.co
Sun Nov 1 02:41:49 UTC 2009


I did some initial work to get support for the new Qt 4.6 classes in smokeqt 
and smokeqtscript.

It does not compile because of wrong generated code with the new template 
class QGenericMatrix:

    void x_78(Smoke::Stack x) {
        // void setUniformValue(int, const QGenericMatrix< double >&)
        this->QGLShaderProgram::setUniformValue((int)x[1].s_int,*(const 
QGenericMatrix< double >*)x[2].s_class);
        (void)x; // noop (for compiler warning)
    }

/home/kde/build/KDE/kdebindings/smoke/qt/x_6.cpp: In member function ‘void 
__smokeqt::x_QGLShaderProgram::x_78(Smoke::StackItem*)’:     
/home/kde/build/KDE/kdebindings/smoke/qt/x_6.cpp:9529: error: wrong number of 
template arguments (1, should be 3)                       
/usr/include/qt4/QtGui/qgenericmatrix.h:55: error: provided for ‘template<int 
N, int M, class T> class QGenericMatrix’                  
/home/kde/build/KDE/kdebindings/smoke/qt/x_6.cpp:9529: error: expected 
primary-expression before ‘const’                                
/home/kde/build/KDE/kdebindings/smoke/qt/x_6.cpp:9529: error: expected `)' 
before ‘const’                                               

If I remove the QGLShader* classes, smokeqt compiles fine.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qtdiff
Type: text/x-patch
Size: 7324 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20091031/0123e6ae/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20091031/0123e6ae/attachment.sig>


More information about the Kde-bindings mailing list