Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Don't assert if focus is already clear.
Already cleared focus should exit the function without terminating the runtime. Task-number: QTBUG-24714 Change-Id: Ia8c6be0d88e43d1f71112acc7bac3eb674f22de8 Reviewed-by: Martin Jones <martin.jones@nokia.com>
- Loading branch information
Alan Alpert
authored and
Qt by Nokia
committed
Mar 15, 2012
1 parent
1c7b036
commit 67f5892
Showing
3 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import QtQuick 2.0 | ||
|
||
Rectangle { | ||
width: 200 | ||
height: 200 | ||
|
||
FocusScope { | ||
id: focusScope | ||
anchors.fill: parent | ||
|
||
TextInput { | ||
anchors.centerIn: parent | ||
text: "Some text" | ||
onActiveFocusChanged: if (!activeFocus) focusScope.focus = false | ||
Component.onCompleted: forceActiveFocus() | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters