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
b07f742d
Commit
b07f742d
authored
Feb 16, 2011
by
Kai Koehne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QmlDebug: Improve 'Failed to connect to debugger ...' dialog
Task-number: QTCREATORBUG-3795
parent
a24ae63c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
6 deletions
+25
-6
src/plugins/debugger/qml/qmladapter.cpp
src/plugins/debugger/qml/qmladapter.cpp
+1
-1
src/plugins/debugger/qml/qmlengine.cpp
src/plugins/debugger/qml/qmlengine.cpp
+24
-5
No files found.
src/plugins/debugger/qml/qmladapter.cpp
View file @
b07f742d
...
...
@@ -114,9 +114,9 @@ void QmlAdapter::pollInferior()
d
->
m_connectionTimer
.
stop
();
d
->
m_connectionAttempts
=
0
;
}
else
if
(
d
->
m_connectionAttempts
==
d
->
m_maxConnectionAttempts
)
{
emit
connectionStartupFailed
();
d
->
m_connectionTimer
.
stop
();
d
->
m_connectionAttempts
=
0
;
emit
connectionStartupFailed
();
}
else
{
connectToViewer
();
}
...
...
src/plugins/debugger/qml/qmlengine.cpp
View file @
b07f742d
...
...
@@ -57,6 +57,8 @@
#include <utils/environment.h>
#include <utils/qtcassert.h>
#include <coreplugin/helpmanager.h>
#include <QtCore/QDateTime>
#include <QtCore/QDebug>
#include <QtCore/QDir>
...
...
@@ -239,11 +241,28 @@ void QmlEngine::connectionEstablished()
void
QmlEngine
::
connectionStartupFailed
()
{
QMessageBox
::
critical
(
0
,
tr
(
"Failed to connect to debugger"
),
tr
(
"Could not connect to QML debugger server at %1:%2."
)
.
arg
(
startParameters
().
qmlServerAddress
)
.
arg
(
startParameters
().
qmlServerPort
));
notifyEngineRunFailed
();
QMessageBox
::
Button
button
=
QMessageBox
::
critical
(
0
,
tr
(
"Failed to connect to QML debugger"
),
tr
(
"Qt Creator could not connect to the in-process debugger at %1:%2.
\n
"
"Do you want to retry?"
)
.
arg
(
startParameters
().
qmlServerAddress
)
.
arg
(
startParameters
().
qmlServerPort
),
QMessageBox
::
Retry
|
QMessageBox
::
Cancel
|
QMessageBox
::
Help
,
QMessageBox
::
Retry
);
switch
(
button
)
{
case
QMessageBox
::
Retry
:
{
d
->
m_adapter
.
beginConnection
();
break
;
}
case
QMessageBox
::
Help
:
{
Core
::
HelpManager
*
helpManager
=
Core
::
HelpManager
::
instance
();
helpManager
->
handleHelpRequest
(
"qthelp://com.nokia.qtcreator/doc/creator-debugging-qml.html"
);
break
;
}
default:
notifyEngineRunFailed
();
}
}
void
QmlEngine
::
connectionError
(
QAbstractSocket
::
SocketError
socketError
)
...
...
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