From: hjk Date: Mon, 14 Feb 2011 12:56:18 +0000 (+0100) Subject: debugger: show more detail for "special" breakpoints in breakwindow X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d6c870e90e2f7e20435908fee26ad7ee8ca662a3;p=qt-creator-jp%2Fqt-creator-jp.git debugger: show more detail for "special" breakpoints in breakwindow main/throw/catch --- diff --git a/src/plugins/debugger/breakhandler.cpp b/src/plugins/debugger/breakhandler.cpp index e26b8b8c84..038bdc16d5 100644 --- a/src/plugins/debugger/breakhandler.cpp +++ b/src/plugins/debugger/breakhandler.cpp @@ -458,6 +458,12 @@ QVariant BreakHandler::data(const QModelIndex &mi, int role) const return response.functionName; if (!data.functionName.isEmpty()) return data.functionName; + if (data.type == BreakpointAtMain) + return tr("Breakpoint at \"main\""); + if (data.type == BreakpointAtCatch) + return tr("Break when catching exceptions"); + if (data.type == BreakpointAtThrow) + return tr("Break when throwing exceptions"); return empty; } break; diff --git a/src/plugins/debugger/breakwindow.cpp b/src/plugins/debugger/breakwindow.cpp index 8067b4ab3a..88d0e99ee5 100644 --- a/src/plugins/debugger/breakwindow.cpp +++ b/src/plugins/debugger/breakwindow.cpp @@ -70,7 +70,7 @@ class BreakpointDialog : public QDialog { Q_OBJECT public: - explicit BreakpointDialog(unsigned engineCapabilities = AllDebuggerCapabilities, QWidget *parent = 0); + explicit BreakpointDialog(unsigned engineCapabilities, QWidget *parent = 0); bool showDialog(BreakpointParameters *data); void setParameters(const BreakpointParameters &data);