Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure the text is laid out before calling componentComplete() on QImplicitSizeItem, as that can potentially evaluate bindings which would then access the uninitialized layout. Change-Id: I5152c1494c54209dae61c13b2f45d343fb76bf9e Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
- Loading branch information
Andrew den Exter
authored and
Qt by Nokia
committed
Jan 4, 2012
1 parent
be72fb2
commit 8bd497a
Showing
3 changed files
with
43 additions
and
7 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
19 changes: 19 additions & 0 deletions
19
tests/auto/qtquick2/qquicktextinput/data/negativeDimensions.qml
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,19 @@ | ||
import QtQuick 2.0 | ||
|
||
Item { | ||
TextInput { | ||
objectName: "input" | ||
|
||
focus: true | ||
width: -1 | ||
height: -1 | ||
text: "sushi" | ||
|
||
anchors { | ||
left: parent.left; | ||
leftMargin: 5 | ||
top: parent.top | ||
topMargin: font.pixelSize | ||
} | ||
} | ||
} |
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