[Kde-bindings] KDE/kdebindings/ruby/qtruby
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Mon Feb 18 19:20:04 UTC 2008
SVN commit 776756 by rdale:
* Ignore the WebCore:: and std:: namespaces when loading classes
CCMAIL: kde-bindings at kde.org
M +4 -0 ChangeLog
M +4 -1 src/lib/Qt/qtruby4.rb
--- trunk/KDE/kdebindings/ruby/qtruby/ChangeLog #776755:776756
@@ -1,3 +1,7 @@
+2008-02-18 Richard Dale <rdale at foton.es>
+
+ * Ignore the WebCore:: and std:: namespaces when loading classes
+
2007-12-19 Richard Dale <rdale at foton.es>
* The Qt::Polygon and Qt::PolygonF classes had no means of getting
--- trunk/KDE/kdebindings/ruby/qtruby/src/lib/Qt/qtruby4.rb #776755:776756
@@ -2135,6 +2135,9 @@
end
def Internal.init_class(c)
+ if c == "WebCore" || c == "std"
+ return
+ end
classname = Qt::Internal::normalize_classname(c)
classId = Qt::Internal.idClass(c)
insert_pclassid(classname, classId)
@@ -2285,7 +2288,7 @@
if method == "new"
method = classname.dup
- method.gsub!(/^(Qt::TextEdit|Qt::TextBlock|Qt::TextLayout|Qt::TextFrame|KBookmark|KParts|KMediaPlayer|KIO|KNS|DOM|Kontact|Kate|KSettings|KTimeZone|KTextEditor|KConfigSkeleton::ItemEnum|KConfigSkeleton|KWin|KWallet|Plasma|SafeSite|Sonnet)::/,"")
+ method.gsub!(/^(Qt::TextEdit|Qt::TextBlock|Qt::TextLayout|Qt::TextFrame|WebCore|KBookmark|KParts|KMediaPlayer|KIO|KNS|DOM|Kontact|Kate|KSettings|KTimeZone|KTextEditor|KConfigSkeleton::ItemEnum|KConfigSkeleton|KWin|KWallet|Plasma|SafeSite|Sonnet)::/,"")
end
method = "operator" + method.sub("@","") if method !~ /[a-zA-Z]+/
# Change foobar= to setFoobar()
More information about the Kde-bindings
mailing list