diff options
Diffstat (limited to 'qtruby/rubylib')
-rw-r--r-- | qtruby/rubylib/qtruby/Qt.cpp | 2 | ||||
-rw-r--r-- | qtruby/rubylib/qtruby/handlers.cpp | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/qtruby/rubylib/qtruby/Qt.cpp b/qtruby/rubylib/qtruby/Qt.cpp index 715110f2..834cc3b2 100644 --- a/qtruby/rubylib/qtruby/Qt.cpp +++ b/qtruby/rubylib/qtruby/Qt.cpp @@ -1377,7 +1377,7 @@ static Smoke::Index new_qvariant_qmap = 0; if (tqstrcmp(argType, "const TQValueList<TQVariant>&" ) == 0) { new_qvariant_qlist = qt_Smoke->ambiguousMethodList[i]; - } else if (tqstrcmp(argType, "const TQMap<TQString,TQVariant>&" ) == 0) { + } else if (tqstrcmp(argType, "const TQStringVariantMap&" ) == 0) { new_qvariant_qmap = qt_Smoke->ambiguousMethodList[i]; } diff --git a/qtruby/rubylib/qtruby/handlers.cpp b/qtruby/rubylib/qtruby/handlers.cpp index fa789e9e..4759e7fc 100644 --- a/qtruby/rubylib/qtruby/handlers.cpp +++ b/qtruby/rubylib/qtruby/handlers.cpp @@ -1574,7 +1574,7 @@ void marshall_TQMapTQStringTQVariant(Marshall *m) { break; } - TQMap<TQString,TQVariant> * map = new TQMap<TQString,TQVariant>; + TQStringVariantMap * map = new TQStringVariantMap; // Convert the ruby hash to an array of key/value arrays VALUE temp = rb_funcall(hash, rb_intern("to_a"), 0); @@ -1609,7 +1609,7 @@ void marshall_TQMapTQStringTQVariant(Marshall *m) { break; case Marshall::ToVALUE: { - TQMap<TQString,TQVariant> *map = (TQMap<TQString,TQVariant>*)m->item().s_voidp; + TQStringVariantMap *map = (TQStringVariantMap*)m->item().s_voidp; if(!map) { *(m->var()) = Qnil; break; @@ -1617,7 +1617,7 @@ void marshall_TQMapTQStringTQVariant(Marshall *m) { VALUE hv = rb_hash_new(); - TQMap<TQString,TQVariant>::Iterator it; + TQStringVariantMap::Iterator it; for (it = map->begin(); it != map->end(); ++it) { void *p = new TQVariant(it.data()); VALUE obj = getPointerObject(p); @@ -1942,8 +1942,8 @@ TypeHandler Qt_handlers[] = { { "TQCanvasItemList", marshall_TQCanvasItemList }, { "TQMap<TQString,TQString>", marshall_TQMapTQStringTQString }, { "TQMap<TQString,TQString>&", marshall_TQMapTQStringTQString }, - { "TQMap<TQString,TQVariant>", marshall_TQMapTQStringTQVariant }, - { "TQMap<TQString,TQVariant>&", marshall_TQMapTQStringTQVariant }, + { "TQStringVariantMap", marshall_TQMapTQStringTQVariant }, + { "TQStringVariantMap&", marshall_TQMapTQStringTQVariant }, #if TQT_VERSION >= 0x030200 { "TQWidgetList", marshall_TQWidgetList }, { "TQWidgetList*", marshall_TQWidgetList }, |