Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
7d423d5f
Commit
7d423d5f
authored
Mar 18, 2010
by
Kai Koehne
Browse files
QmlDesigner: Fix crash in property editor when parent of an item is invalid
Happened for import Qt 4.6 Flipable { Rectangle {} }
parent
0cb84165
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/components/propertyeditor/siblingcombobox.cpp
View file @
7d423d5f
...
...
@@ -87,19 +87,20 @@ void SiblingComboBox::setup()
}
QmlItemNode
parent
(
m_itemNode
.
instanceParent
().
toQmlItemNode
());
m_itemList
.
prepend
(
parent
);
QString
parentString
(
"Parent ("
);
if
(
parent
.
id
().
isEmpty
())
parentString
+=
parent
.
simplfiedTypeName
();
else
parentString
+=
parent
.
id
();
parentString
+=
")"
;
insertItem
(
0
,
parentString
);
if
(
parent
.
isValid
())
{
m_itemList
.
prepend
(
parent
);
QString
parentString
(
"Parent ("
);
if
(
parent
.
id
().
isEmpty
())
parentString
+=
parent
.
simplfiedTypeName
();
else
parentString
+=
parent
.
id
();
parentString
+=
")"
;
insertItem
(
0
,
parentString
);
}
setCurrentIndex
(
m_itemList
.
indexOf
(
m_selectedItemNode
));
connect
(
this
,
SIGNAL
(
currentIndexChanged
(
int
)),
this
,
SLOT
(
changeSelection
(
int
)));
}
...
...
tests/manual/qml/testfiles/flipable.qml
0 → 100644
View file @
7d423d5f
import
Qt
4.6
Rectangle
{
width
:
640
height
:
480
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment