summaryrefslogtreecommitdiffstats
path: root/qtruby
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-09-03 20:02:03 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-09-03 20:59:03 +0200
commit3771a842be82c729e79a2728d2b39f901da2d865 (patch)
tree1745d38238389a00651e5bbfefde3662dcb50c54 /qtruby
parent620f8b9f5d43eb28d25ead69e9fa52626bd91cd8 (diff)
downloadtdebindings-3771a842be82c729e79a2728d2b39f901da2d865.tar.gz
tdebindings-3771a842be82c729e79a2728d2b39f901da2d865.zip
Additional k => tde renaming and fixes
Diffstat (limited to 'qtruby')
-rwxr-xr-xqtruby/bin/rbqtapi4
-rw-r--r--qtruby/rubylib/qtruby/Qt.cpp2
-rw-r--r--qtruby/rubylib/qtruby/lib/Qt/qtruby.rb2
3 files changed, 4 insertions, 4 deletions
diff --git a/qtruby/bin/rbqtapi b/qtruby/bin/rbqtapi
index e4e2dc16..9598c9ba 100755
--- a/qtruby/bin/rbqtapi
+++ b/qtruby/bin/rbqtapi
@@ -26,7 +26,7 @@ if $OPT_m
while 1
line = STDIN.readline.chomp
line.gsub!(/^Q(?=[A-Z])/,'TQt::')
- line.gsub!(/^K/,'KDE::') unless line =~ /^(KDE)|(KIO)|(KParts)|(KNS)/
+ line.gsub!(/^K/,'KDE::') unless line =~ /^(KDE)|(TDEIO)|(KParts)|(KNS)/
classid = TQt::Internal::find_pclassid($_)
puts "__START__"
if classid
@@ -51,7 +51,7 @@ end
search_string = ARGV[0] ? ARGV[0].dup : nil
search_string.gsub!(/^Q(?=[A-Z])/,'TQt::') if search_string
# search_string.gsub!(/^K(?=[^D][^E])/,'KDE::') if search_string
-search_string.gsub!(/^K/,'KDE::') unless search_string.nil? or search_string =~ /^(KDE)|(KIO)|(KParts)|(KNS)/
+search_string.gsub!(/^K/,'KDE::') unless search_string.nil? or search_string =~ /^(KDE)|(TDEIO)|(KParts)|(KNS)/
classid = search_string ? TQt::Internal::find_pclassid(search_string) : 1
if classid == 0
puts "Class #{search_string} not found"
diff --git a/qtruby/rubylib/qtruby/Qt.cpp b/qtruby/rubylib/qtruby/Qt.cpp
index f6c8c7ec..715110f2 100644
--- a/qtruby/rubylib/qtruby/Qt.cpp
+++ b/qtruby/rubylib/qtruby/Qt.cpp
@@ -2839,7 +2839,7 @@ set_new_kde(VALUE (*new_kde) (int, VALUE *, VALUE))
rb_define_singleton_method(kns_module, "method_missing", (VALUE (*) (...)) kde_module_method_missing, -1);
rb_define_singleton_method(kns_module, "const_missing", (VALUE (*) (...)) kde_module_method_missing, -1);
- tdeio_module = rb_define_module("KIO");
+ tdeio_module = rb_define_module("TDEIO");
rb_define_singleton_method(tdeio_module, "method_missing", (VALUE (*) (...)) kde_module_method_missing, -1);
rb_define_singleton_method(tdeio_module, "const_missing", (VALUE (*) (...)) kde_module_method_missing, -1);
diff --git a/qtruby/rubylib/qtruby/lib/Qt/qtruby.rb b/qtruby/rubylib/qtruby/lib/Qt/qtruby.rb
index d0fd9783..a0866277 100644
--- a/qtruby/rubylib/qtruby/lib/Qt/qtruby.rb
+++ b/qtruby/rubylib/qtruby/lib/Qt/qtruby.rb
@@ -1511,7 +1511,7 @@ module Qt
if method == "new"
method = classname.dup
- method.gsub!(/^(KParts|KIO|KNS|DOM|Kontact|Kate|KTextEditor|TDEConfigSkeleton::ItemEnum|TDEConfigSkeleton|KWin)::/,"")
+ method.gsub!(/^(KParts|TDEIO|KNS|DOM|Kontact|Kate|KTextEditor|TDEConfigSkeleton::ItemEnum|TDEConfigSkeleton|KWin)::/,"")
end
method = "operator" + method.sub("@","") if method !~ /[a-zA-Z]+/
# Change foobar= to setFoobar()