summaryrefslogtreecommitdiffstats
path: root/src/scripttools/debugging
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@sosco.com>2009-08-18 08:32:04 (GMT)
committerShane Kearns <shane.kearns@sosco.com>2009-08-18 08:32:04 (GMT)
commit06524f769fec76fa7ebcc39ac88ac9e08c720677 (patch)
treea14448b17d6a8e1104d8471bee0948de4572df84 /src/scripttools/debugging
parent1428cc6d71a65c1ac7123c9c4cc3cfaf225cceed (diff)
parentff96a87389d69a537a91d364b299aae09c2129a6 (diff)
downloadQt-06524f769fec76fa7ebcc39ac88ac9e08c720677.zip
Qt-06524f769fec76fa7ebcc39ac88ac9e08c720677.tar.gz
Qt-06524f769fec76fa7ebcc39ac88ac9e08c720677.tar.bz2
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt-s60-public
Diffstat (limited to 'src/scripttools/debugging')
-rw-r--r--src/scripttools/debugging/qscriptdebugger.cpp4
-rw-r--r--src/scripttools/debugging/qscriptenginedebugger.cpp4
-rw-r--r--src/scripttools/debugging/qscriptstdmessagehandler.cpp13
3 files changed, 5 insertions, 16 deletions
diff --git a/src/scripttools/debugging/qscriptdebugger.cpp b/src/scripttools/debugging/qscriptdebugger.cpp
index 1ce9ab6..40f4d6c 100644
--- a/src/scripttools/debugging/qscriptdebugger.cpp
+++ b/src/scripttools/debugging/qscriptdebugger.cpp
@@ -136,8 +136,8 @@ static bool scriptDebuggerEventCallback(void **data)
\brief The QScriptDebugger class provides a Qt Script debugger.
- \ingroup scripttools
- \mainclass
+ \ingroup script
+
*/
class QScriptDebuggerPrivate
diff --git a/src/scripttools/debugging/qscriptenginedebugger.cpp b/src/scripttools/debugging/qscriptenginedebugger.cpp
index b8ed4ea..0588109 100644
--- a/src/scripttools/debugging/qscriptenginedebugger.cpp
+++ b/src/scripttools/debugging/qscriptenginedebugger.cpp
@@ -75,8 +75,8 @@ public:
\brief The QScriptEngineDebugger class provides a QScriptEngine debugger.
- \ingroup scripttools
- \mainclass
+ \ingroup script
+
The QScriptEngineDebugger class provides a debugger that can be
embedded into Qt applications that use Qt Script. The debugger
diff --git a/src/scripttools/debugging/qscriptstdmessagehandler.cpp b/src/scripttools/debugging/qscriptstdmessagehandler.cpp
index e54183c..d2aa1cf 100644
--- a/src/scripttools/debugging/qscriptstdmessagehandler.cpp
+++ b/src/scripttools/debugging/qscriptstdmessagehandler.cpp
@@ -91,18 +91,7 @@ void QScriptStdMessageHandler::message(QtMsgType type, const QString &text,
}
msg.append(text);
- FILE *fp = 0;
- switch (type) {
- case QtDebugMsg:
- fp = stdout;
- break;
- case QtWarningMsg:
- case QtCriticalMsg:
- case QtFatalMsg:
- fp = stderr;
- break;
- }
-
+ FILE *fp = (type == QtDebugMsg) ? stdout : stderr;
fprintf(fp, "%s\n", msg.toLatin1().constData());
fflush(fp);
}