Files
harbour-core/harbour/contrib/hbqt/qtgui/qth/QVBoxLayout.qth
Pritpal Bedi 5614f62a18 2012-05-31 23:32 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/qtgui/qth/QApplication.qth
  * contrib/hbqt/qtgui/qth/QColorDialog.qth
  * contrib/hbqt/qtgui/qth/QDirModel.qth
  * contrib/hbqt/qtgui/qth/QHBoxLayout.qth
  * contrib/hbqt/qtgui/qth/QPageSetupDialog.qth
  * contrib/hbqt/qtgui/qth/QScrollBar.qth
  * contrib/hbqt/qtgui/qth/QTableView.qth
  * contrib/hbqt/qtgui/qth/QVBoxLayout.qth
  * contrib/hbqt/qtgui/qth/QWizard.qth
    ! Fixed: constructors which was basically wrong way to get a 
      class object. This became visible only when QPointer< QClass >
      guard is eliminated which was hiding this wrong way.

  * contrib/hbqt/hbmk2_qt.hb
  * contrib/hbqt/qtcore/hbqt.h
  + contrib/hbqt/qtcore/hbqt_bind.cpp
  + contrib/hbqt/qtcore/hbqt_obj.prg
  * contrib/hbqt/qtcore/hbqt_pointer.cpp
  * contrib/hbqt/qtcore/hbqtcore.hbm
  * contrib/hbqt/qtcore/hbqtcore.hbx
    + Implemented Przemek's draft concept with some changes.
      This can be invoked by uncommenting #define __HBQT_REVAMP__
      directive in hbqt.h and hbmk2_qt.hb and recompiling hbQT.

  ; NOTE: all demo tests in contrib/hbqt/tests/* are working ok with new 
          revamped engine, which, I hope will be matured with time, and 
          only if Przemek will revive his interest in this project.
          The demos are working ok with a GPF on exit. I did not 
          tried hard to track but hopefully will be a minor issue.
          This implementation is not taking use of QPointer<> guard
          and is operational on pure pointers, it has discovered
          a fundamental flaw in some of the .qth where constructors
          were not adhering to primary rules. It may take me a while 
          to visit all the classes and make the correction. Today's
          implementation has fixes for those classes which are used
          in demo programs.

          This commit became essential in the wake of divided thoughts 
          about having two implementations in parallel. This commit 
          shows the way that we do not need that, just few changes in 
          core engine will establish the solid foundation.
2012-06-01 07:04:17 +00:00

40 lines
641 B
Plaintext

/*
* $Id$
*/
/*
* Harbour Qt wrapper generator control file
*
* Copyright 2009-2012 Pritpal Bedi <bedipritpal@hotmail.com>
* www - http://www.harbour-project.org
*
* See COPYING for licensing terms.
*/
<CLASS>
Inherit = QBoxLayout
New = pParent
</CLASS>
<CODE>
#include <QtGui/QVBoxLayout>
/*
* QVBoxLayout ()
* QVBoxLayout ( QWidget * parent )
* ~QVBoxLayout ()
*/
HB_FUNC( QT_QVBOXLAYOUT )
{
if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QWIDGET" ) )
{
__HB_RETPTRGC__( new QVBoxLayout( hbqt_par_QWidget( 1 ) ) );
}
else
{
__HB_RETPTRGC__( new QVBoxLayout() );
}
}
</CODE>