TabChain -> FocusChain
This commit is contained in:
parent
14e844eb84
commit
d39501c1b9
@ -24,7 +24,7 @@ static void qskRegisterEventTypes()
|
||||
|
||||
Q_CONSTRUCTOR_FUNCTION( qskRegisterEventTypes )
|
||||
|
||||
int qskTabChainIncrement( const QEvent* event )
|
||||
int qskFocusChainIncrement( const QEvent* event )
|
||||
{
|
||||
if ( event && event->type() == QEvent::KeyPress )
|
||||
{
|
||||
|
@ -117,6 +117,6 @@ class QSK_EXPORT QskAnimatorEvent : public QskEvent
|
||||
const State m_state;
|
||||
};
|
||||
|
||||
QSK_EXPORT int qskTabChainIncrement( const QEvent* );
|
||||
QSK_EXPORT int qskFocusChainIncrement( const QEvent* );
|
||||
|
||||
#endif
|
||||
|
@ -381,7 +381,7 @@ bool QskWindow::event( QEvent* event )
|
||||
|
||||
void QskWindow::keyPressEvent( QKeyEvent* event )
|
||||
{
|
||||
if ( qskTabChainIncrement( event ) != 0 )
|
||||
if ( qskFocusChainIncrement( event ) != 0 )
|
||||
{
|
||||
auto focusItem = activeFocusItem();
|
||||
if ( focusItem == nullptr || focusItem == contentItem() )
|
||||
|
Loading…
x
Reference in New Issue
Block a user