text: /*
  
    Qt5xHb - Bindings libraries for Harbour/xHarbour and Qt Framework 5
  
    Copyright (C) 2021 Marcos Antonio Gambeta <marcosgambeta AT outlook DOT com>
  
  */
  
  /*
    DO NOT EDIT THIS FILE - the content was created using a source code generator
  */
  
  #include "QActionGroupSlots.h"
  
  QActionGroupSlots::QActionGroupSlots( QObject *parent ) : QObject( parent )
  {
  }
  
  QActionGroupSlots::~QActionGroupSlots()
  {
  }
  
  void QActionGroupSlots::hovered( QAction * action )
  {
    QObject *object = qobject_cast<QObject *>(sender());
  
    PHB_ITEM cb = Qt5xHb::Signals_return_codeblock( object, "hovered(QAction*)" );
  
    if( cb )
    {
      PHB_ITEM psender = Qt5xHb::Signals_return_qobject( (QObject *) object, "QACTIONGROUP" );
      PHB_ITEM paction = Qt5xHb::Signals_return_qobject( (QObject *) action, "QACTION" );
  
      hb_vmEvalBlockV( cb, 2, psender, paction );
  
      hb_itemRelease( psender );
      hb_itemRelease( paction );
    }
  }
  
  void QActionGroupSlots::triggered( QAction * action )
  {
    QObject *object = qobject_cast<QObject *>(sender());
  
    PHB_ITEM cb = Qt5xHb::Signals_return_codeblock( object, "triggered(QAction*)" );
  
    if( cb )
    {
      PHB_ITEM psender = Qt5xHb::Signals_return_qobject( (QObject *) object, "QACTIONGROUP" );
      PHB_ITEM paction = Qt5xHb::Signals_return_qobject( (QObject *) action, "QACTION" );
  
      hb_vmEvalBlockV( cb, 2, psender, paction );
  
      hb_itemRelease( psender );
      hb_itemRelease( paction );
    }
  }
  
  void QActionGroupSlots_connect_signal( const QString & signal, const QString & slot )
  {
    QActionGroup * obj = (QActionGroup *) Qt5xHb::itemGetPtrStackSelfItem();
  
    if( obj )
    {
      QActionGroupSlots * s = QCoreApplication::instance()->findChild<QActionGroupSlots *>();
  
      if( s == NULL )
      {
        s = new QActionGroupSlots();
        s->moveToThread( QCoreApplication::instance()->thread() );
        s->setParent( QCoreApplication::instance() );
      }
  
      hb_retl( Qt5xHb::Signals_connection_disconnection( s, signal, slot ) );
    }
    else
    {
      hb_retl( false );
    }
  }
  