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
42f326af
Commit
42f326af
authored
Jul 15, 2010
by
hjk
Browse files
debugger: start moving to the async shutdown infrastructure
parent
c336ddae
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/debuggerplugin.cpp
View file @
42f326af
...
...
@@ -2551,9 +2551,18 @@ ExtensionSystem::IPlugin::ShutdownFlag DebuggerPlugin::aboutToShutdown()
d
->
m_uiSwitcher
->
aboutToShutdown
();
//if (d->m_engine)
// d->m_engine->shutdown();
return
SynchronousShutdown
;
// FIXME: Notify all engines instead.
QTimer
::
singleShot
(
0
,
this
,
SLOT
(
emitShutdownFinished
()));
return
AsynchronousShutdown
;
}
void
DebuggerPlugin
::
emitShutdownFinished
()
{
emit
asynchronousShutdownFinished
();
}
void
DebuggerPlugin
::
showMessage
(
const
QString
&
msg
,
int
channel
,
int
timeout
)
{
//qDebug() << "PLUGIN OUTPUT: " << channel << msg;
...
...
src/plugins/debugger/debuggerplugin.h
View file @
42f326af
...
...
@@ -35,7 +35,6 @@
#include <extensionsystem/iplugin.h>
QT_BEGIN_NAMESPACE
class
QAbstractItemView
;
class
QIcon
;
class
QMessageBox
;
QT_END_NAMESPACE
...
...
@@ -119,8 +118,9 @@ signals:
private:
friend
class
Internal
::
DebuggerEngine
;
friend
class
Internal
::
DebuggerListener
;
friend
class
Internal
::
DebuggerListener
;
Q_SLOT
void
emitShutdownFinished
();
bool
initialize
(
const
QStringList
&
arguments
,
QString
*
errorMessage
);
ShutdownFlag
aboutToShutdown
();
void
extensionsInitialized
();
...
...
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