summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/debuggeractions.cpp
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2015-12-16 14:13:44 +0100
committerhjk <hjk@theqtcompany.com>2015-12-17 14:58:23 +0000
commit6a71c631869afac7477242c599186a29cde7d426 (patch)
tree873d3b45c79ef33fd8558ef92ebf7b607456a369 /src/plugins/debugger/debuggeractions.cpp
parente5b9e819faea9b65013bbc35fefead2a7b38599e (diff)
downloadqt-creator-6a71c631869afac7477242c599186a29cde7d426.tar.gz
Debugger: Make display of QObject names optional
... and switch it off by default. The feature has indeterministic performance impact and lost quite a bit of its utility since GDB learned to extract dynamic object types most of the times. Change-Id: I22cccb03ba67f9ff6ad757bbc06eb372d84bbffe Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: hjk <hjk@theqtcompany.com>
Diffstat (limited to 'src/plugins/debugger/debuggeractions.cpp')
-rw-r--r--src/plugins/debugger/debuggeractions.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/plugins/debugger/debuggeractions.cpp b/src/plugins/debugger/debuggeractions.cpp
index d3788703f1..f86e3fbe97 100644
--- a/src/plugins/debugger/debuggeractions.cpp
+++ b/src/plugins/debugger/debuggeractions.cpp
@@ -269,6 +269,18 @@ DebuggerSettings::DebuggerSettings()
insertItem(ShowQtNamespace, item);
item = new SavedAction(this);
+ item->setSettingsKey(debugModeGroup, QLatin1String("ShowQObjectNames"));
+ item->setText(tr("Show QObject names if available"));
+ item->setDialogText(tr("Show QObject names if available"));
+ item->setToolTip(tr("<p>Displays the objectName property of QObject based items. "
+ "Note that this can negatively impact debugger performance "
+ "even if no QObjects are present."));
+ item->setCheckable(true);
+ item->setDefaultValue(false);
+ item->setValue(false);
+ insertItem(ShowQObjectNames, item);
+
+ item = new SavedAction(this);
item->setSettingsKey(debugModeGroup, QLatin1String("SortStructMembers"));
item->setText(tr("Sort Members of Classes and Structs Alphabetically"));
item->setDialogText(tr("Sort members of classes and structs alphabetically"));