API cleanup
This commit is contained in:
parent
da1f385682
commit
d334ed84c5
@ -70,9 +70,9 @@ void GridSkinny::setSizeHint(
|
|||||||
int pos, Qt::Orientation orientation, Qt::SizeHint which, int hint )
|
int pos, Qt::Orientation orientation, Qt::SizeHint which, int hint )
|
||||||
{
|
{
|
||||||
if ( orientation == Qt::Vertical )
|
if ( orientation == Qt::Vertical )
|
||||||
m_grid->setRowSizeHint( pos, which, hint );
|
m_grid->setRowHeightHint( pos, which, hint );
|
||||||
else
|
else
|
||||||
m_grid->setColumnSizeHint( pos, which, hint );
|
m_grid->setColumnWidthHint( pos, which, hint );
|
||||||
}
|
}
|
||||||
|
|
||||||
void GridSkinny::setStretchFactor(
|
void GridSkinny::setStretchFactor(
|
||||||
|
@ -345,34 +345,34 @@ int QskGridBox::columnStretchFactor( int column ) const
|
|||||||
|
|
||||||
void QskGridBox::setRowFixedHeight( int row, qreal height )
|
void QskGridBox::setRowFixedHeight( int row, qreal height )
|
||||||
{
|
{
|
||||||
setRowSizeHint( row, Qt::MinimumSize, height );
|
setRowHeightHint( row, Qt::MinimumSize, height );
|
||||||
setRowSizeHint( row, Qt::MaximumSize, height );
|
setRowHeightHint( row, Qt::MaximumSize, height );
|
||||||
}
|
}
|
||||||
|
|
||||||
void QskGridBox::setColumnFixedWidth( int column, qreal width )
|
void QskGridBox::setColumnFixedWidth( int column, qreal width )
|
||||||
{
|
{
|
||||||
setColumnSizeHint( column, Qt::MinimumSize, width );
|
setColumnWidthHint( column, Qt::MinimumSize, width );
|
||||||
setColumnSizeHint( column, Qt::MaximumSize, width );
|
setColumnWidthHint( column, Qt::MaximumSize, width );
|
||||||
}
|
}
|
||||||
|
|
||||||
void QskGridBox::setRowSizeHint( int row, Qt::SizeHint which, qreal height )
|
void QskGridBox::setRowHeightHint( int row, Qt::SizeHint which, qreal height )
|
||||||
{
|
{
|
||||||
if ( m_data->engine.setRowSizeHint( row, which, height ) )
|
if ( m_data->engine.setRowSizeHint( row, which, height ) )
|
||||||
polish();
|
polish();
|
||||||
}
|
}
|
||||||
|
|
||||||
qreal QskGridBox::rowSizeHint( int row, Qt::SizeHint which ) const
|
qreal QskGridBox::rowHeightHint( int row, Qt::SizeHint which ) const
|
||||||
{
|
{
|
||||||
return m_data->engine.rowSizeHint( row, which );
|
return m_data->engine.rowSizeHint( row, which );
|
||||||
}
|
}
|
||||||
|
|
||||||
void QskGridBox::setColumnSizeHint( int column, Qt::SizeHint which, qreal width )
|
void QskGridBox::setColumnWidthHint( int column, Qt::SizeHint which, qreal width )
|
||||||
{
|
{
|
||||||
if ( m_data->engine.setColumnSizeHint( column, which, width ) )
|
if ( m_data->engine.setColumnSizeHint( column, which, width ) )
|
||||||
polish();
|
polish();
|
||||||
}
|
}
|
||||||
|
|
||||||
qreal QskGridBox::columnSizeHint( int column, Qt::SizeHint which ) const
|
qreal QskGridBox::columnWidthHint( int column, Qt::SizeHint which ) const
|
||||||
{
|
{
|
||||||
return m_data->engine.columnSizeHint( column, which );
|
return m_data->engine.columnSizeHint( column, which );
|
||||||
}
|
}
|
||||||
|
@ -77,11 +77,11 @@ class QSK_EXPORT QskGridBox : public QskBox
|
|||||||
|
|
||||||
// row/column size hints
|
// row/column size hints
|
||||||
|
|
||||||
Q_INVOKABLE void setColumnSizeHint( int column, Qt::SizeHint, qreal width );
|
Q_INVOKABLE void setColumnWidthHint( int column, Qt::SizeHint, qreal width );
|
||||||
Q_INVOKABLE qreal columnSizeHint( int column, Qt::SizeHint ) const;
|
Q_INVOKABLE qreal columnWidthHint( int column, Qt::SizeHint ) const;
|
||||||
|
|
||||||
Q_INVOKABLE void setRowSizeHint( int row, Qt::SizeHint, qreal height );
|
Q_INVOKABLE void setRowHeightHint( int row, Qt::SizeHint, qreal height );
|
||||||
Q_INVOKABLE qreal rowSizeHint( int row, Qt::SizeHint ) const;
|
Q_INVOKABLE qreal rowHeightHint( int row, Qt::SizeHint ) const;
|
||||||
|
|
||||||
Q_INVOKABLE void setRowFixedHeight( int row, qreal height );
|
Q_INVOKABLE void setRowFixedHeight( int row, qreal height );
|
||||||
Q_INVOKABLE void setColumnFixedWidth( int column, qreal width );
|
Q_INVOKABLE void setColumnFixedWidth( int column, qreal width );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user