diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-06-16 10:21:32 +0200 |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-06-16 10:21:32 +0200 |
commit | 47840c0d35a37f55dc09f935709484c072419349 (patch) | |
tree | 0eca9bfd6cdab003dbf97486351f2dc57a6ce5ad | |
parent | 8632900cf1cafb06a61b38fbcfc020f165bb1784 (diff) |
implement autoShowStandardWindow functionality
-rw-r--r-- | src/qscriptremotetargetdebugger.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/qscriptremotetargetdebugger.cpp b/src/qscriptremotetargetdebugger.cpp index 41dded1..377cbeb 100644 --- a/src/qscriptremotetargetdebugger.cpp +++ b/src/qscriptremotetargetdebugger.cpp @@ -477,4 +477,23 @@ QMenu *QScriptRemoteTargetDebugger::createStandardMenu(QWidget *parent) return m_debugger->createStandardMenu(parent, this); } +bool QScriptRemoteTargetDebugger::autoShowStandardWindow() const +{ + return m_autoShow; +} + +void QScriptRemoteTargetDebugger::setAutoShowStandardWindow(bool autoShow) +{ + if (autoShow == m_autoShow) + return; + if (autoShow) { + QObject::connect(this, SIGNAL(evaluationSuspended()), + this, SLOT(showStandardWindow())); + } else { + QObject::disconnect(this, SIGNAL(evaluationSuspended()), + this, SLOT(showStandardWindow())); + } + m_autoShow = autoShow; +} + #include "qscriptremotetargetdebugger.moc" |