Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
5ac9a194
Commit
5ac9a194
authored
Jan 24, 2011
by
Christiaan Janssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QmlDebugger: displaying tooltips while qml is running
Reviewed-by: hjk
parent
0e476646
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
1 deletion
+9
-1
src/plugins/debugger/debuggerengine.h
src/plugins/debugger/debuggerengine.h
+2
-0
src/plugins/debugger/debuggerplugin.cpp
src/plugins/debugger/debuggerplugin.cpp
+1
-1
src/plugins/debugger/qml/qmlengine.cpp
src/plugins/debugger/qml/qmlengine.cpp
+5
-0
src/plugins/debugger/qml/qmlengine.h
src/plugins/debugger/qml/qmlengine.h
+1
-0
No files found.
src/plugins/debugger/debuggerengine.h
View file @
5ac9a194
...
...
@@ -247,6 +247,8 @@ public:
virtual
bool
setupQmlStep
(
bool
/*on*/
)
{
return
false
;
}
virtual
void
readyToExecuteQmlStep
()
{}
virtual
bool
canDisplayTooltip
()
const
{
return
state
()
==
InferiorStopOk
;
}
signals:
void
stateChanged
(
const
DebuggerState
&
state
);
void
updateViewsRequested
();
...
...
src/plugins/debugger/debuggerplugin.cpp
View file @
5ac9a194
...
...
@@ -1928,7 +1928,7 @@ void DebuggerPluginPrivate::showToolTip(ITextEditor *editor,
return
;
if
(
!
currentEngine
())
return
;
if
(
currentEngine
()
->
state
()
!=
InferiorStopOk
)
if
(
!
currentEngine
()
->
canDisplayTooltip
()
)
return
;
QTC_ASSERT
(
handled
,
return
);
*
handled
=
true
;
...
...
src/plugins/debugger/qml/qmlengine.cpp
View file @
5ac9a194
...
...
@@ -263,6 +263,11 @@ void QmlEngine::pauseConnection()
d
->
m_adapter
.
pauseConnection
();
}
bool
QmlEngine
::
canDisplayTooltip
()
const
{
return
state
()
==
InferiorRunOk
||
state
()
==
InferiorStopOk
;
}
void
QmlEngine
::
closeConnection
()
{
ExtensionSystem
::
PluginManager
*
pluginManager
=
...
...
src/plugins/debugger/qml/qmlengine.h
View file @
5ac9a194
...
...
@@ -60,6 +60,7 @@ public:
void
gotoLocation
(
const
Location
&
location
);
void
pauseConnection
();
bool
canDisplayTooltip
()
const
;
public
slots
:
void
messageReceived
(
const
QByteArray
&
message
);
...
...
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