* contrib/hbqt/qtgui/qth/QBoxLayout.qth
* contrib/hbqt/qtgui/qth/QComboBox.qth
* contrib/hbqt/qtgui/qth/QDirModel.qth
* contrib/hbqt/qtgui/qth/QDockWidget.qth
* contrib/hbqt/qtgui/qth/QDrag.qth
* contrib/hbqt/qtgui/qth/QGraphicsScene.qth
* contrib/hbqt/qtgui/qth/QGridLayout.qth
* contrib/hbqt/qtgui/qth/QLayout.qth
* contrib/hbqt/qtgui/qth/QMainWindow.qth
* contrib/hbqt/qtgui/qth/QMenu.qth
* contrib/hbqt/qtgui/qth/QMenuBar.qth
* contrib/hbqt/qtgui/qth/QScrollArea.qth
* contrib/hbqt/qtgui/qth/QStandardItemModel.qth
* contrib/hbqt/qtgui/qth/QStatusBar.qth
* contrib/hbqt/qtgui/qth/QTabWidget.qth
* contrib/hbqt/qtgui/qth/QToolBar.qth
* contrib/hbqt/qtgui/qth/QTreeWidgetItem.qth
* contrib/hbqt/qtgui/qth/QWidget.qth
% Replaced: [*D=n*] => [*X=n*] except for
QTreeWidget/QListWidget/QTableWidget as per the change
in core engine where deletion of a Qt object is entirely
thought of on new grounds.
* contrib/hbqt/tests/demoqt.prg
! Optimizations and removal of redundant code.
* contrib/hbqt/qtcore/hbqt.h
* contrib/hbqt/qtcore/hbqt_bind.cpp
* contrib/hbqt/qtcore/hbqt_destroyer.cpp
* contrib/hbqt/qtcore/hbqt_destroyer.h
+ Overhauled: the Qt object destruction protocol.
This commit is the result of two weeks intensive debugging
spree. This commits now handles MT applications better
then before. This commit also covers the mem leaks evident
for certain widgets.
WARNING: regression is possible, please report.
69 lines
2.1 KiB
Plaintext
69 lines
2.1 KiB
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 = QLayout
|
|
New = pParent
|
|
</CLASS>
|
|
|
|
<CODE>
|
|
#include <QtGui/QGridLayout>
|
|
|
|
|
|
/*
|
|
* QGridLayout ( QWidget * parent )
|
|
* QGridLayout ()
|
|
* ~QGridLayout ()
|
|
*/
|
|
HB_FUNC( QT_QGRIDLAYOUT )
|
|
{
|
|
if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QWIDGET" ) )
|
|
{
|
|
__HB_RETPTRGC__( new QGridLayout( hbqt_par_QWidget( 1 ) ) );
|
|
}
|
|
else
|
|
{
|
|
__HB_RETPTRGC__( new QGridLayout() );
|
|
}
|
|
}
|
|
</CODE>
|
|
|
|
<PROTOS>
|
|
void addItem ( QLayoutItem * item, int row, int column, int rowSpan = 1, int columnSpan = 1, Qt::Alignment alignment = 0 ) [*X=1*]
|
|
void addLayout ( QLayout * layout, int row, int column, Qt::Alignment alignment = 0 ) [*X=1*]
|
|
void addLayout ( QLayout * layout, int row, int column, int rowSpan, int columnSpan, Qt::Alignment alignment = 0 ) [*X=1*]
|
|
void addWidget ( QWidget * widget, int row, int column, Qt::Alignment alignment = 0 ) [*X=1*]
|
|
void addWidget ( QWidget * widget, int fromRow, int fromColumn, int rowSpan, int columnSpan, Qt::Alignment alignment = 0 ) [*X=1*]
|
|
QRect cellRect ( int row, int column ) const
|
|
int columnCount () const
|
|
int columnMinimumWidth ( int column ) const
|
|
int columnStretch ( int column ) const
|
|
void getItemPosition ( int index, int * row, int * column, int * rowSpan, int * columnSpan )
|
|
int horizontalSpacing () const
|
|
QLayoutItem * itemAtPosition ( int row, int column ) const
|
|
Qt::Corner originCorner () const
|
|
int rowCount () const
|
|
int rowMinimumHeight ( int row ) const
|
|
int rowStretch ( int row ) const
|
|
void setColumnMinimumWidth ( int column, int minSize )
|
|
void setColumnStretch ( int column, int stretch )
|
|
void setHorizontalSpacing ( int spacing )
|
|
void setOriginCorner ( Qt::Corner corner )
|
|
void setRowMinimumHeight ( int row, int minSize )
|
|
void setRowStretch ( int row, int stretch )
|
|
void setSpacing ( int spacing )
|
|
void setVerticalSpacing ( int spacing )
|
|
int spacing () const
|
|
int verticalSpacing () const
|
|
</PROTOS>
|