text: /*
  
    Qt4xHb - Bindings libraries for Harbour/xHarbour and Qt Framework 4
  
    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 "QGraphicsOpacityEffectSlots.h"
  
  QGraphicsOpacityEffectSlots::QGraphicsOpacityEffectSlots( QObject * parent ) : QObject( parent )
  {
  }
  
  QGraphicsOpacityEffectSlots::~QGraphicsOpacityEffectSlots()
  {
  }
  
  void QGraphicsOpacityEffectSlots::opacityChanged( qreal opacity )
  {
    QObject * object = qobject_cast< QObject * >( sender() );
  
    PHB_ITEM cb = Qt4xHb::Signals_return_codeblock( object, "opacityChanged(qreal)" );
  
    if( cb )
    {
      PHB_ITEM pSender = Qt4xHb::Signals_return_qobject( object, "QGRAPHICSOPACITYEFFECT" );
      PHB_ITEM pOpacity = hb_itemPutND( NULL, opacity );
  
      hb_vmEvalBlockV( cb, 2, pSender, pOpacity );
  
      hb_itemRelease( pSender );
      hb_itemRelease( pOpacity );
    }
  }
  
  void QGraphicsOpacityEffectSlots::opacityMaskChanged( const QBrush & mask )
  {
    QObject * object = qobject_cast< QObject * >( sender() );
  
    PHB_ITEM cb = Qt4xHb::Signals_return_codeblock( object, "opacityMaskChanged(QBrush)" );
  
    if( cb )
    {
      PHB_ITEM pSender = Qt4xHb::Signals_return_qobject( object, "QGRAPHICSOPACITYEFFECT" );
      PHB_ITEM pMask = Qt4xHb::Signals_return_object( ( void * ) &mask, "QBRUSH" );
  
      hb_vmEvalBlockV( cb, 2, pSender, pMask );
  
      hb_itemRelease( pSender );
      hb_itemRelease( pMask );
    }
  }
  
  void QGraphicsOpacityEffectSlots_connect_signal( const QString & signal, const QString & slot )
  {
    QGraphicsOpacityEffect * obj = qobject_cast< QGraphicsOpacityEffect * >( Qt4xHb::getQObjectPointerFromSelfItem() );
  
    if( obj )
    {
      QGraphicsOpacityEffectSlots * s = QCoreApplication::instance()->findChild<QGraphicsOpacityEffectSlots *>();
  
      if( s == NULL )
      {
        s = new QGraphicsOpacityEffectSlots();
        s->moveToThread( QCoreApplication::instance()->thread() );
        s->setParent( QCoreApplication::instance() );
      }
  
      hb_retl( Qt4xHb::Signals_connection_disconnection( s, signal, slot ) );
    }
    else
    {
      hb_retl( false );
    }
  }
  