From 7707fc0c69c08b2f561904b27b008ccb9d691d0b Mon Sep 17 00:00:00 2001
From: Robert Loehning <robert.loehning@nokia.com>
Date: Thu, 20 May 2010 21:45:18 +0200
Subject: [PATCH] Debugger: Made menu captions more explicit

---
 src/plugins/debugger/watchwindow.cpp | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/plugins/debugger/watchwindow.cpp b/src/plugins/debugger/watchwindow.cpp
index 420c17d4b15..243aaad86af 100644
--- a/src/plugins/debugger/watchwindow.cpp
+++ b/src/plugins/debugger/watchwindow.cpp
@@ -318,27 +318,25 @@ void WatchWindow::contextMenuEvent(QContextMenuEvent *ev)
     // Offer to open address pointed to or variable address.
     const bool createPointerActions = pointerValue &&  pointerValue != address;
 
-    const QString openMemoryEditorFormat = tr("Open Memory Editor at 0x%1");
     if (canShowMemory && address)
         actOpenMemoryEditAtVariableAddress =
-            new QAction(openMemoryEditorFormat.arg(address, 0, 16), &menu);
+            new QAction(tr("Open Memory Editor at Object's Address (0x%1)").arg(address, 0, 16), &menu);
     if (createPointerActions)
         actOpenMemoryEditAtPointerValue =
-                new QAction(openMemoryEditorFormat.arg(pointerValue, 0, 16), &menu);
+                new QAction(tr("Open Memory Editor at Referenced Address (0x%1)").arg(pointerValue, 0, 16), &menu);
     menu.addSeparator();
 
     QAction *actSetWatchPointAtVariableAddress = 0;
     QAction *actSetWatchPointAtPointerValue= 0;
     const bool canSetWatchpoint = engineCapabilities & WatchpointCapability;
     if (canSetWatchpoint && address) {
-        const QString watchPointFormat = tr("Break on Changing Contents of 0x%1");
         actSetWatchPointAtVariableAddress =
-            new QAction(watchPointFormat.arg(address, 0, 16), &menu);
+            new QAction(tr("Break on Changes at Object's Address (0x%1)").arg(address, 0, 16), &menu);
         actSetWatchPointAtVariableAddress->setCheckable(true);
         actSetWatchPointAtVariableAddress->setChecked(m_manager->breakHandler()->watchPointAt(address));
         if (createPointerActions) {
             actSetWatchPointAtPointerValue =
-                    new QAction(watchPointFormat.arg(pointerValue, 0, 16), &menu);
+                    new QAction(tr("Break on Changes at Referenced Address (0x%1)").arg(pointerValue, 0, 16), &menu);
             actSetWatchPointAtPointerValue->setCheckable(true);
             actSetWatchPointAtPointerValue->setChecked(m_manager->breakHandler()->watchPointAt(pointerValue));
         }
-- 
GitLab