OSDN Git Service

debugger: show more detail for "special" breakpoints in breakwindow
authorhjk <qtc-committer@nokia.com>
Mon, 14 Feb 2011 12:56:18 +0000 (13:56 +0100)
committerhjk <qtc-committer@nokia.com>
Mon, 14 Feb 2011 12:56:18 +0000 (13:56 +0100)
main/throw/catch

src/plugins/debugger/breakhandler.cpp
src/plugins/debugger/breakwindow.cpp

index e26b8b8..038bdc1 100644 (file)
@@ -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;
index 8067b4a..88d0e99 100644 (file)
@@ -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);