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
6d1d196e
Commit
6d1d196e
authored
Jun 29, 2010
by
Roberto Raggi
Browse files
Cleanup
parent
4aa63c07
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmljsinspector/qmljsinspector.cpp
View file @
6d1d196e
...
...
@@ -97,10 +97,17 @@
#include <QtNetwork/QHostAddress>
using
namespace
QmlJS
::
AST
;
using
namespace
QmlJSInspector
::
Internal
;
using
namespace
Debugger
::
Internal
;
enum
{
MaxConnectionAttempts
=
50
,
ConnectionAttemptDefaultInterval
=
75
,
// used when debugging with c++ - connection can take a lot of time
ConnectionAttemptSimultaneousInterval
=
500
};
Inspector
::
Inspector
(
QObject
*
parent
)
:
QObject
(
parent
),
m_connectionTimer
(
new
QTimer
(
this
)),
...
...
src/plugins/qmljsinspector/qmljsinspector.h
View file @
6d1d196e
...
...
@@ -60,11 +60,6 @@ namespace Internal {
class
ClientProxy
;
class
InspectorContext
;
const
int
MaxConnectionAttempts
=
50
;
const
int
ConnectionAttemptDefaultInterval
=
75
;
// used when debugging with c++ - connection can take a lot of time
const
int
ConnectionAttemptSimultaneousInterval
=
500
;
class
Inspector
:
public
QObject
{
Q_OBJECT
...
...
@@ -76,12 +71,12 @@ public:
QmlProjectWithCppPlugins
};
public:
Inspector
(
QObject
*
parent
=
0
);
~
Inspector
();
void
shutdown
();
virtual
~
Inspector
();
bool
connectToViewer
();
// using host, port from widgets
void
shutdown
();
// returns false if project is not debuggable.
bool
setDebugConfigurationDataFromProject
(
ProjectExplorer
::
Project
*
projectToDebug
);
...
...
@@ -91,8 +86,8 @@ public:
const
QString
&
propertyName
,
const
QVariant
&
value
);
QDeclarativeDebugExpressionQuery
*
setBindingForObject
(
int
objectDebugId
,
const
QString
&
objectId
,
const
QString
&
propertyName
,
const
QVariant
&
value
,
bool
isLiteralValue
);
const
QString
&
propertyName
,
const
QVariant
&
value
,
bool
isLiteralValue
);
signals:
void
statusMessage
(
const
QString
&
text
);
...
...
@@ -135,14 +130,10 @@ private:
private:
QWeakPointer
<
QDeclarativeEngineDebug
>
m_client
;
QmlProjectManager
::
QmlProjectRunConfigurationDebugData
m_runConfigurationDebugData
;
InspectorContext
*
m_context
;
QTimer
*
m_connectionTimer
;
int
m_connectionAttempts
;
QmlProjectManager
::
QmlProjectRunConfigurationDebugData
m_runConfigurationDebugData
;
// simultaneous debug mode stuff
int
m_cppDebuggerState
;
bool
m_connectionInitialized
;
bool
m_simultaneousCppAndQmlDebugMode
;
...
...
Write
Preview
Supports
Markdown
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