Skip to content
GitLab
Menu
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
e0b11d43
Commit
e0b11d43
authored
Oct 06, 2010
by
Kai Koehne
Browse files
QmlJSInspector: Guard qDebug output
parent
878f146e
Changes
1
Show whitespace changes
Inline
Side-by-side
src/plugins/qmljsinspector/qmljsclientproxy.cpp
View file @
e0b11d43
...
@@ -44,6 +44,10 @@
...
@@ -44,6 +44,10 @@
#include <QAbstractSocket>
#include <QAbstractSocket>
#include <QDebug>
#include <QDebug>
enum
{
debug
=
false
};
using
namespace
QmlJSInspector
::
Internal
;
using
namespace
QmlJSInspector
::
Internal
;
ClientProxy
::
ClientProxy
(
Debugger
::
QmlAdapter
*
adapter
,
QObject
*
parent
)
ClientProxy
::
ClientProxy
(
Debugger
::
QmlAdapter
*
adapter
,
QObject
*
parent
)
...
@@ -266,6 +270,7 @@ bool ClientProxy::setBindingForObject(int objectDebugId,
...
@@ -266,6 +270,7 @@ bool ClientProxy::setBindingForObject(int objectDebugId,
const
QVariant
&
value
,
const
QVariant
&
value
,
bool
isLiteralValue
)
bool
isLiteralValue
)
{
{
if
(
debug
)
qDebug
()
<<
"setBindingForObject():"
<<
objectDebugId
<<
propertyName
<<
value
;
qDebug
()
<<
"setBindingForObject():"
<<
objectDebugId
<<
propertyName
<<
value
;
if
(
objectDebugId
==
-
1
)
if
(
objectDebugId
==
-
1
)
return
false
;
return
false
;
...
@@ -280,6 +285,7 @@ bool ClientProxy::setBindingForObject(int objectDebugId,
...
@@ -280,6 +285,7 @@ bool ClientProxy::setBindingForObject(int objectDebugId,
bool
ClientProxy
::
setMethodBodyForObject
(
int
objectDebugId
,
const
QString
&
methodName
,
const
QString
&
methodBody
)
bool
ClientProxy
::
setMethodBodyForObject
(
int
objectDebugId
,
const
QString
&
methodName
,
const
QString
&
methodBody
)
{
{
if
(
debug
)
qDebug
()
<<
"setMethodBodyForObject():"
<<
objectDebugId
<<
methodName
<<
methodBody
;
qDebug
()
<<
"setMethodBodyForObject():"
<<
objectDebugId
<<
methodName
<<
methodBody
;
if
(
objectDebugId
==
-
1
)
if
(
objectDebugId
==
-
1
)
return
0
;
return
0
;
...
@@ -288,6 +294,7 @@ bool ClientProxy::setMethodBodyForObject(int objectDebugId, const QString &metho
...
@@ -288,6 +294,7 @@ bool ClientProxy::setMethodBodyForObject(int objectDebugId, const QString &metho
bool
ClientProxy
::
resetBindingForObject
(
int
objectDebugId
,
const
QString
&
propertyName
)
bool
ClientProxy
::
resetBindingForObject
(
int
objectDebugId
,
const
QString
&
propertyName
)
{
{
if
(
debug
)
qDebug
()
<<
"resetBindingForObject():"
<<
objectDebugId
<<
propertyName
;
qDebug
()
<<
"resetBindingForObject():"
<<
objectDebugId
<<
propertyName
;
if
(
objectDebugId
==
-
1
)
if
(
objectDebugId
==
-
1
)
return
false
;
return
false
;
...
@@ -297,6 +304,8 @@ bool ClientProxy::resetBindingForObject(int objectDebugId, const QString& proper
...
@@ -297,6 +304,8 @@ bool ClientProxy::resetBindingForObject(int objectDebugId, const QString& proper
QDeclarativeDebugExpressionQuery
*
ClientProxy
::
queryExpressionResult
(
int
objectDebugId
,
const
QString
&
expr
,
QObject
*
parent
)
QDeclarativeDebugExpressionQuery
*
ClientProxy
::
queryExpressionResult
(
int
objectDebugId
,
const
QString
&
expr
,
QObject
*
parent
)
{
{
if
(
debug
)
qDebug
()
<<
"queryExpressionResult():"
<<
objectDebugId
<<
expr
<<
parent
;
if
(
objectDebugId
!=
-
1
)
if
(
objectDebugId
!=
-
1
)
return
m_client
->
queryExpressionResult
(
objectDebugId
,
expr
,
parent
);
return
m_client
->
queryExpressionResult
(
objectDebugId
,
expr
,
parent
);
return
0
;
return
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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