more functions
This commit is contained in:
parent
c923200e52
commit
40bbe2d7d9
@ -67,7 +67,10 @@ bool qskIsAncestorOf( const QQuickItem* item, const QQuickItem* child )
|
|||||||
|
|
||||||
bool qskIsVisibleToParent( const QQuickItem* item )
|
bool qskIsVisibleToParent( const QQuickItem* item )
|
||||||
{
|
{
|
||||||
return QQuickItemPrivate::get( item )->explicitVisible;
|
if ( item )
|
||||||
|
return QQuickItemPrivate::get( item )->explicitVisible;
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool qskIsVisibleTo( const QQuickItem* item, const QQuickItem* ancestor )
|
bool qskIsVisibleTo( const QQuickItem* item, const QQuickItem* ancestor )
|
||||||
@ -99,6 +102,14 @@ bool qskIsTabFence( const QQuickItem* item )
|
|||||||
return QQuickItemPrivate::get( item )->isTabFence;
|
return QQuickItemPrivate::get( item )->isTabFence;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool qskIsPolishScheduled( const QQuickItem* item )
|
||||||
|
{
|
||||||
|
if ( item )
|
||||||
|
return QQuickItemPrivate::get( item )->polishScheduled;
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
bool qskIsShortcutScope( const QQuickItem* item )
|
bool qskIsShortcutScope( const QQuickItem* item )
|
||||||
{
|
{
|
||||||
if ( item == nullptr )
|
if ( item == nullptr )
|
||||||
|
@ -26,6 +26,7 @@ QSK_EXPORT bool qskIsTabFence( const QQuickItem* );
|
|||||||
QSK_EXPORT bool qskIsShortcutScope( const QQuickItem* );
|
QSK_EXPORT bool qskIsShortcutScope( const QQuickItem* );
|
||||||
QSK_EXPORT bool qskIsVisibleTo( const QQuickItem* item, const QQuickItem* ancestor );
|
QSK_EXPORT bool qskIsVisibleTo( const QQuickItem* item, const QQuickItem* ancestor );
|
||||||
QSK_EXPORT bool qskIsVisibleToParent( const QQuickItem* );
|
QSK_EXPORT bool qskIsVisibleToParent( const QQuickItem* );
|
||||||
|
QSK_EXPORT bool qskIsPolishScheduled( const QQuickItem* );
|
||||||
|
|
||||||
QSK_EXPORT void qskSetTransparentForPositioner( QQuickItem*, bool );
|
QSK_EXPORT void qskSetTransparentForPositioner( QQuickItem*, bool );
|
||||||
QSK_EXPORT bool qskIsTransparentForPositioner( const QQuickItem* );
|
QSK_EXPORT bool qskIsTransparentForPositioner( const QQuickItem* );
|
||||||
@ -46,6 +47,12 @@ QSK_EXPORT void qskInputMethodSetVisible( const QQuickItem*, bool );
|
|||||||
QSK_EXPORT const QSGNode* qskItemNode( const QQuickItem* );
|
QSK_EXPORT const QSGNode* qskItemNode( const QQuickItem* );
|
||||||
QSK_EXPORT const QSGNode* qskPaintNode( const QQuickItem* );
|
QSK_EXPORT const QSGNode* qskPaintNode( const QQuickItem* );
|
||||||
|
|
||||||
|
inline void qskSetItemGeometry(
|
||||||
|
QQuickItem* item, qreal x, qreal y, qreal width, qreal height )
|
||||||
|
{
|
||||||
|
qskSetItemGeometry( item, QRectF( x, y, width, height ) );
|
||||||
|
}
|
||||||
|
|
||||||
template< typename T >
|
template< typename T >
|
||||||
inline T qskFindAncestorOf( QQuickItem* item )
|
inline T qskFindAncestorOf( QQuickItem* item )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user