2 Commits 01f2041419 ... f14fc37e98

Author SHA1 Message Date
  Jaidyn Levesque f14fc37e98 Add `findobj` function, for finding QObjects 3 months ago
  Jaidyn Levesque 01f2041419 Add `findobj` function, for finding QObjects 3 months ago
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.cpp

+ 1 - 1
main.cpp

@@ -116,7 +116,7 @@ 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<QWidget *>(QString(name)); }
-QObject *qt_findobj(QObject *parent, char *name) { return parent->findChild<QAction *>(QString(name)); }
+QObject *qt_findobj(QObject *parent, char *name) { return parent->findChild<QObject *>(QString(name)); }
 QObject *qt_receiver(char *name, C_word proc) { return new SimpleReceiver(name, proc); }