diff --git a/main.cpp b/main.cpp index c39d94b..9b76250 100644 --- a/main.cpp +++ b/main.cpp @@ -115,7 +115,7 @@ void qt_hide(QWidget *w) { w->show(); } void qt_deleteobject(QObject *o) { delete o; } void qt_deletepixmap(QPixmap *o) { delete o; } ___bool qt_connect(QWidget *w1, char *sig, QObject *w2, char *slot) { return bool(QObject::connect(w1, sig, w2, slot)); } -QWidget *qt_find(QWidget *parent, char *name) { return parent->findChild(QString(name)); } +QObject *qt_find(QObject *parent, char *name) { return parent->findChild(QString(name)); } QObject *qt_receiver(char *name, C_word proc) { return new SimpleReceiver(name, proc); } diff --git a/prototypes.h b/prototypes.h index 1628894..898cde0 100644 --- a/prototypes.h +++ b/prototypes.h @@ -10,7 +10,7 @@ void qt_deleteobject(qtobject widget); void qt_deletepixmap(qtpixmap widget); qtpixmap qt_pixmap(char *filename); ___bool qt_connect(qtwidget w1, char *sig, qtobject w2, char *slot); -qtwidget qt_find(qtwidget parent, char *name); +qtobject qt_find(qtobject parent, char *name); qtobject qt_receiver(char *name, C_word proc); int qt_message(char *caption, char *text, qtwidget parent, char *b0, char *b1, char *b2); const char *qt_classname(qtobject w); diff --git a/qt-light.scm b/qt-light.scm index 4e72868..23a7f82 100644 --- a/qt-light.scm +++ b/qt-light.scm @@ -3,7 +3,7 @@ (module qt-light (qt:init qt:widget qt:show qt:hide qt:run - qt:delete qt:message qt:connect qt:find + qt:delete qt:message qt:connect qt:find qt:widget qt:receiver qt:pixmap qt:timer qt:property qt:gl qt:update qt:start qt:stop qt:clear qt:add qt:item qt:classname