Debugger: Switch on QObject name display by default

... and use the option to govern general QObject guts display.

This allows people to completely avoid the performance impact
of attempted QObject display and still makes the feature
more prominent for our favorite use case.

Change-Id: I1e53b6448f646ab7eea9168a3cd24c77769e6328
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2016-12-01 09:22:53 +01:00
committed by Christian Stenger
parent a9b5e518d0
commit 2275d68373
5 changed files with 62 additions and 88 deletions

View File

@@ -257,15 +257,15 @@ DebuggerSettings::DebuggerSettings()
insertItem(ShowQtNamespace, item);
item = new SavedAction(this);
item->setSettingsKey(debugModeGroup, QLatin1String("ShowQObjectNames"));
item->setSettingsKey(debugModeGroup, QLatin1String("ShowQObjectNames2"));
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);
item->setDefaultValue(true);
item->setValue(true);
insertItem(ShowQObjectNames, item);
item = new SavedAction(this);