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
Marco Bubke
flatpak-qt-creator
Commits
8f23a4ab
Commit
8f23a4ab
authored
Feb 23, 2010
by
Thomas Hartmann
Browse files
QmlDesigner.propertyEditor: fix setupPane()
parent
5181f2eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp
View file @
8f23a4ab
...
...
@@ -235,26 +235,31 @@ PropertyEditor::~PropertyEditor()
void
PropertyEditor
::
setupPane
(
const
QString
&
typeName
)
{
if
(
m_typeHash
.
contains
(
typeName
))
return
;
QUrl
qmlFile
=
fileToUrl
(
locateQmlFile
(
QLatin1String
(
"Qt/ItemPane.qml"
)));
QUrl
qmlSpecificsFile
;
qmlSpecificsFile
=
fileToUrl
(
locateQmlFile
(
typeName
+
"Specifics.qml"
));
NodeType
*
type
=
m_typeHash
.
value
(
qmlFile
.
toString
());
NodeType
*
type
=
m_typeHash
.
value
(
typeName
);
type
=
new
NodeType
(
qmlFile
,
this
);
if
(
!
type
)
{
type
=
new
NodeType
(
qmlFile
,
this
);
m_stackedWidget
->
addWidget
(
type
->
m_view
);
m_typeHash
.
insert
(
typeName
,
type
);
QmlContext
*
ctxt
=
type
->
m_view
->
rootContext
();
ctxt
->
setContextProperty
(
"finishedNotify"
,
QVariant
(
false
)
);
type
->
initialSetup
(
typeName
,
qmlSpecificsFile
,
this
);
type
->
m_view
->
execute
();
ctxt
->
setContextProperty
(
"finishedNotify"
,
QVariant
(
true
)
);
QmlContext
*
ctxt
=
type
->
m_view
->
rootContext
();
type
->
initialSetup
(
typeName
,
qmlSpecificsFile
,
this
);
ctxt
->
setContextProperty
(
"finishedNotify"
,
QVariant
(
false
)
);
type
->
m_view
->
execute
();
ctxt
->
setContextProperty
(
"finishedNotify"
,
QVariant
(
true
)
);
m_stackedWidget
->
addWidget
(
type
->
m_view
);
m_typeHash
.
insert
(
qmlFile
.
toString
(),
type
);
}
else
{
QmlContext
*
ctxt
=
type
->
m_view
->
rootContext
();
ctxt
->
setContextProperty
(
"finishedNotify"
,
QVariant
(
false
)
);
type
->
initialSetup
(
typeName
,
qmlSpecificsFile
,
this
);
ctxt
->
setContextProperty
(
"finishedNotify"
,
QVariant
(
true
)
);
}
QApplication
::
processEvents
();
}
void
PropertyEditor
::
changeValue
(
const
QString
&
propertyName
)
...
...
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