[Kde-bindings] Smoke Qt 4.6 classes
Arno Rehn
arno at arnorehn.de
Mon Nov 2 21:17:46 UTC 2009
On Sunday 01 November 2009 03:41:49 David Palacio wrote:
> 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.
Thanks for the report, I'll look into that.
--
Arno Rehn
arno at arnorehn.de
More information about the Kde-bindings
mailing list