[Kde-bindings] Missing munged method name entries for QVector and QList types

Richard Dale rdale at foton.es
Tue Oct 27 12:49:06 UTC 2009


The current generator is not generating munged method name entries for QList 
and QVector types in the methodName table - there is no 'QPolygon?' for the 
constructor that takes a QVector:

    "QPointF$$",        //3768
    "QPolygon", //3769
    "QPolygon#",        //3770
    "QPolygon#$",       //3771
    "QPolygon$",        //3772
    "QPolygon$$",       //3773

The actual methods are there in the methodMaps table:

    {350, 3769, 0, 0, Smoke::mf_ctor, 970, 1},  //13805 QPolygon::QPolygon()
    {350, 3769, 24, 1, Smoke::mf_ctor, 970, 2}, //13806 
QPolygon::QPolygon(int)
    {350, 3769, 4853, 1, Smoke::mf_ctor|Smoke::mf_copyctor, 970, 3},    
//13807 QPolygon::QPolygon(const QPolygon&)
    {350, 3769, 7285, 1, Smoke::mf_ctor, 970, 4},       //13808 
QPolygon::QPolygon(const QVector< QPoint >&)
    {350, 3769, 7841, 2, Smoke::mf_ctor, 970, 5},       //13809 
QPolygon::QPolygon(const QRect&, bool)
    {350, 3769, 7844, 2, Smoke::mf_ctor, 970, 6},       //13810 
QPolygon::QPolygon(int, const int*)

$ rbqtapi Qt::Polygon | grep QVector
QPolygon* QPolygon::QPolygon(const QVector<QPoint>&)

$ irb -rQt4
irb(main):001:0> p = Qt::Polygon.new([Qt::Point.new(100, 200)])
ArgumentError: unresolved constructor call Qt::Polygon

        from /usr/lib/ruby/site_ruby/1.8/Qt/qtruby4.rb:2581:in `initialize'
        from /usr/lib/ruby/site_ruby/1.8/Qt/qtruby4.rb:2581:in `call'
        from /usr/lib/ruby/site_ruby/1.8/Qt/qtruby4.rb:2581:in 
`try_initialize'
        from /usr/lib/ruby/site_ruby/1.8/Qt/qtruby4.rb:2580:in `catch'
        from /usr/lib/ruby/site_ruby/1.8/Qt/qtruby4.rb:2580:in 
`try_initialize'
        from (irb):1:in `new'
        from (irb):1

-- Richard



More information about the Kde-bindings mailing list