summaryrefslogtreecommitdiffstats
path: root/qtruby/rubylib/qtruby/Qt.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-01 13:30:40 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-01 13:30:40 -0600
commit32459311b349db581cc5fb0d80739a95b3d998b4 (patch)
treefd6475e6f0e015fce495961d6a0c50027bb95faa /qtruby/rubylib/qtruby/Qt.cpp
parentef5a04df564ad5c27406c41fb55e32ad3aa39d25 (diff)
downloadtdebindings-32459311b349db581cc5fb0d80739a95b3d998b4.tar.gz
tdebindings-32459311b349db581cc5fb0d80739a95b3d998b4.zip
Rename additional global TQt functions
Diffstat (limited to 'qtruby/rubylib/qtruby/Qt.cpp')
-rw-r--r--qtruby/rubylib/qtruby/Qt.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/qtruby/rubylib/qtruby/Qt.cpp b/qtruby/rubylib/qtruby/Qt.cpp
index 0c33796f..bd9e010a 100644
--- a/qtruby/rubylib/qtruby/Qt.cpp
+++ b/qtruby/rubylib/qtruby/Qt.cpp
@@ -188,7 +188,7 @@ void unmapPointer(smokeruby_object *o, Smoke::Index classId, void *lastptr) {
if (do_debug & qtdb_gc) {
const char *className = o->smoke->classes[o->classId].className;
- qWarning("unmapPointer (%s*)%p -> %p", className, ptr, obj_ptr);
+ tqWarning("unmapPointer (%s*)%p -> %p", className, ptr, obj_ptr);
}
pointer_map.remove(ptr);
@@ -215,7 +215,7 @@ void mapPointer(VALUE obj, smokeruby_object *o, Smoke::Index classId, void *last
if (do_debug & qtdb_gc) {
const char *className = o->smoke->classes[o->classId].className;
- qWarning("mapPointer (%s*)%p -> %p", className, ptr, (void*)obj);
+ tqWarning("mapPointer (%s*)%p -> %p", className, ptr, (void*)obj);
}
pointer_map.insert(ptr, obj_ptr);
@@ -763,7 +763,7 @@ public:
VALUE obj = getPointerObject(ptr);
smokeruby_object *o = value_obj_info(obj);
if(do_debug & qtdb_gc) {
- qWarning("%p->~%s()", ptr, smoke->className(classId));
+ tqWarning("%p->~%s()", ptr, smoke->className(classId));
}
if(!o || !o->ptr) {
return;
@@ -791,7 +791,7 @@ public:
signature += " const";
}
- qWarning( "virtual %p->%s::%s called",
+ tqWarning( "virtual %p->%s::%s called",
ptr,
smoke->classes[smoke->methods[method].classId].className,
(const char *) signature );
@@ -799,7 +799,7 @@ public:
if(!o) {
if( do_debug & qtdb_virtual ) // if not in global destruction
- qWarning("Cannot find object for virtual method %p -> %p", ptr, &obj);
+ tqWarning("Cannot find object for virtual method %p -> %p", ptr, &obj);
return false;
}
@@ -838,21 +838,21 @@ extern "C" {
static VALUE
qdebug(VALUE klass, VALUE msg)
{
- qDebug("%s", StringValuePtr(msg));
+ tqDebug("%s", StringValuePtr(msg));
return klass;
}
static VALUE
qfatal(VALUE klass, VALUE msg)
{
- qFatal("%s", StringValuePtr(msg));
+ tqFatal("%s", StringValuePtr(msg));
return klass;
}
static VALUE
qwarning(VALUE klass, VALUE msg)
{
- qWarning("%s", StringValuePtr(msg));
+ tqWarning("%s", StringValuePtr(msg));
return klass;
}
@@ -1413,13 +1413,13 @@ static TQCString * mcid = 0;
Smoke::Index *rcid = methcache.find((const char *)*mcid);
#ifdef DEBUG
- if (do_debug & qtdb_calls) qWarning("method_missing mcid: %s", (const char *) *mcid);
+ if (do_debug & qtdb_calls) tqWarning("method_missing mcid: %s", (const char *) *mcid);
#endif
if (rcid) {
// Got a hit
#ifdef DEBUG
- if (do_debug & qtdb_calls) qWarning("method_missing cache hit, mcid: %s", (const char *) *mcid);
+ if (do_debug & qtdb_calls) tqWarning("method_missing cache hit, mcid: %s", (const char *) *mcid);
#endif
_current_method = *rcid;
} else {
@@ -1945,7 +1945,7 @@ getIsa(VALUE /*self*/, VALUE classId)
qt_Smoke->classes[NUM2INT(classId)].parents;
while(*parents) {
- //qWarning("\tparent: %s", qt_Smoke->classes[*parents].className);
+ //tqWarning("\tparent: %s", qt_Smoke->classes[*parents].className);
rb_ary_push(parents_list, rb_str_new2(qt_Smoke->classes[*parents++].className));
}
return parents_list;
@@ -2384,12 +2384,12 @@ findMethod(VALUE /*self*/, VALUE c_value, VALUE name_value)
VALUE result = rb_ary_new();
Smoke::Index meth = qt_Smoke->findMethod(c, name);
#ifdef DEBUG
- if (do_debug & qtdb_calls) qWarning("DAMNIT on %s::%s => %d", c, name, meth);
+ if (do_debug & qtdb_calls) tqWarning("DAMNIT on %s::%s => %d", c, name, meth);
#endif
if(!meth) {
meth = qt_Smoke->findMethod("TQGlobalSpace", name);
#ifdef DEBUG
- if (do_debug & qtdb_calls) qWarning("DAMNIT on TQGlobalSpace::%s => %d", name, meth);
+ if (do_debug & qtdb_calls) tqWarning("DAMNIT on TQGlobalSpace::%s => %d", name, meth);
#endif
}
@@ -2412,7 +2412,7 @@ findMethod(VALUE /*self*/, VALUE c_value, VALUE name_value)
if ((methodRef.flags & Smoke::mf_internal) == 0) {
rb_ary_push(result, INT2NUM(qt_Smoke->ambiguousMethodList[i]));
#ifdef DEBUG
- if (do_debug & qtdb_calls) qWarning("Ambiguous Method %s::%s => %d", c, name, qt_Smoke->ambiguousMethodList[i]);
+ if (do_debug & qtdb_calls) tqWarning("Ambiguous Method %s::%s => %d", c, name, qt_Smoke->ambiguousMethodList[i]);
#endif
}
@@ -2439,7 +2439,7 @@ findAllMethods(int argc, VALUE * argv, VALUE /*self*/)
if(argc > 1 && TYPE(argv[1]) == T_STRING)
pat = StringValuePtr(argv[1]);
#ifdef DEBUG
- if (do_debug & qtdb_calls) qWarning("findAllMethods called with classid = %d, pat == %s", c, pat);
+ if (do_debug & qtdb_calls) tqWarning("findAllMethods called with classid = %d, pat == %s", c, pat);
#endif
Smoke::Index imax = qt_Smoke->numMethodMaps;
Smoke::Index imin = 0, icur = -1, methmin, methmax;
@@ -2545,7 +2545,7 @@ findAllMethodNames(VALUE /*self*/, VALUE result, VALUE classid, VALUE flags_valu
return Qnil;
}
#ifdef DEBUG
- if (do_debug & qtdb_calls) qWarning("findAllMethodNames called with classid = %d", c);
+ if (do_debug & qtdb_calls) tqWarning("findAllMethodNames called with classid = %d", c);
#endif
Smoke::Index imax = qt_Smoke->numMethodMaps;
Smoke::Index imin = 0, icur = -1, methmin, methmax;