Doc: Clarify the ownership of a state for addState()

Change-Id: Ibe498c5288faa478a4dba934bc3c403829b337db
Fixes: QTBUG-62445
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
bb10
Kavindra Palaraja 2019-10-29 17:40:37 +01:00
parent f121f319b9
commit 6132b77db9
1 changed files with 1 additions and 1 deletions

View File

@ -2599,7 +2599,7 @@ void QStateMachine::setGlobalRestorePolicy(QState::RestorePolicy restorePolicy)
/*!
Adds the given \a state to this state machine. The state becomes a top-level
state.
state and the state machine takes ownership of the state.
If the state is already in a different machine, it will first be removed
from its old machine, and then added to this machine.