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
61c786c8
Commit
61c786c8
authored
Mar 17, 2010
by
Kai Koehne
Browse files
Fix gcc warnings
parent
3fb241c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp
View file @
61c786c8
...
...
@@ -396,7 +396,7 @@ void PropertyEditor::changeExpression(const QString &name)
QmlObjectNode
fxObjectNode
(
m_selectedNode
);
PropertyEditorValue
*
value
=
qobject_cast
<
PropertyEditorValue
*>
(
QDeclarativeMetaType
::
toQObject
(
m_currentType
->
m_backendValuesPropertyMap
.
value
(
underscoreName
)));
if
(
fxObjectNode
.
modelNode
().
metaInfo
().
isValid
()
&&
fxObjectNode
.
modelNode
().
metaInfo
().
property
(
name
).
isValid
())
if
(
fxObjectNode
.
modelNode
().
metaInfo
().
isValid
()
&&
fxObjectNode
.
modelNode
().
metaInfo
().
property
(
name
).
isValid
())
{
if
(
fxObjectNode
.
modelNode
().
metaInfo
().
property
(
name
).
type
()
==
QLatin1String
(
"QColor"
))
{
if
(
QColor
(
value
->
expression
().
remove
(
'"'
)).
isValid
())
{
fxObjectNode
.
setVariantProperty
(
name
,
QColor
(
value
->
expression
().
remove
(
'"'
)));
...
...
@@ -425,6 +425,7 @@ void PropertyEditor::changeExpression(const QString &name)
return
;
}
}
}
if
(
!
value
)
{
qWarning
()
<<
"PropertyEditor::changeExpression no value for "
<<
underscoreName
;
...
...
src/plugins/qmlinspector/qmlinspectorplugin.cpp
View file @
61c786c8
...
...
@@ -96,7 +96,6 @@ bool QmlInspectorPlugin::initialize(const QStringList &arguments, QString *error
Q_UNUSED
(
arguments
);
Q_UNUSED
(
errorString
);
Core
::
ICore
*
core
=
Core
::
ICore
::
instance
();
connect
(
Core
::
ModeManager
::
instance
(),
SIGNAL
(
currentModeChanged
(
Core
::
IMode
*
)),
SLOT
(
prepareDebugger
(
Core
::
IMode
*
)));
...
...
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