effectivePlacement added
This commit is contained in:
parent
e5cb155350
commit
f2c1eff7ac
@ -39,12 +39,10 @@ QskTabView::QskTabView( Qsk::Position tabPosition, QQuickItem* parent )
|
|||||||
{
|
{
|
||||||
setPolishOnResize( true );
|
setPolishOnResize( true );
|
||||||
|
|
||||||
m_data->tabBar = new QskTabBar( tabPosition, this );
|
|
||||||
m_data->tabBar->setZ( 1 );
|
|
||||||
|
|
||||||
m_data->stackBox = new QskStackBox( this );
|
m_data->stackBox = new QskStackBox( this );
|
||||||
m_data->stackBox->setObjectName( QStringLiteral( "QskTabViewStackBox" ) );
|
m_data->stackBox->setObjectName( QStringLiteral( "QskTabViewStackBox" ) );
|
||||||
m_data->stackBox->setZ( 0 );
|
|
||||||
|
m_data->tabBar = new QskTabBar( tabPosition, this );
|
||||||
|
|
||||||
#if 1
|
#if 1
|
||||||
const auto hint = animation( Page );
|
const auto hint = animation( Page );
|
||||||
@ -219,6 +217,11 @@ int QskTabView::count() const
|
|||||||
return m_data->tabBar->count();
|
return m_data->tabBar->count();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QskAspect::Placement QskTabView::effectivePlacement() const
|
||||||
|
{
|
||||||
|
return m_data->tabBar->effectivePlacement();
|
||||||
|
}
|
||||||
|
|
||||||
QSizeF QskTabView::layoutSizeHint(
|
QSizeF QskTabView::layoutSizeHint(
|
||||||
Qt::SizeHint which, const QSizeF& constraint ) const
|
Qt::SizeHint which, const QSizeF& constraint ) const
|
||||||
{
|
{
|
||||||
|
@ -75,6 +75,8 @@ class QSK_EXPORT QskTabView : public QskControl
|
|||||||
|
|
||||||
QRectF tabRect() const;
|
QRectF tabRect() const;
|
||||||
|
|
||||||
|
QskAspect::Placement effectivePlacement() const override;
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
void setCurrentIndex( int index );
|
void setCurrentIndex( int index );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user