item->setValue(true);
insertItem(UseCodeModel, item);
+ item = new SavedAction(this);
+ item->setSettingsKey(debugModeGroup, QLatin1String("ShowThreadNames"));
+ item->setCheckable(true);
+ item->setDefaultValue(false);
+ item->setValue(false);
+ insertItem(ShowThreadNames, item);
+
//
// Breakpoints
CustomDebuggingHelperLocation,
UseCodeModel,
+ ShowThreadNames,
UseToolTipsInMainEditor,
UseToolTipsInLocalsView,
m_group.insert(debuggerCore()->action(UseCodeModel),
m_ui.checkBoxUseCodeModel);
+ m_group.insert(debuggerCore()->action(ShowThreadNames),
+ m_ui.checkBoxShowThreadNames);
+
#ifndef QT_DEBUG
#if 0
<< ' ' << m_ui.debuggingHelperGroupBox->title()
<< ' ' << m_ui.customLocationGroupBox->title()
<< ' ' << m_ui.dumperLocationLabel->text()
- << ' ' << m_ui.checkBoxUseCodeModel->text();
+ << ' ' << m_ui.checkBoxUseCodeModel->text()
+ << ' ' << m_ui.checkBoxShowThreadNames->text();
m_searchKeywords.remove(QLatin1Char('&'));
}
return w;
</property>
</widget>
</item>
+ <item>
+ <widget class="QCheckBox" name="checkBoxShowThreadNames">
+ <property name="toolTip">
+ <string>Displays names of QThread based threads.</string>
+ </property>
+ <property name="text">
+ <string>Display thread names</string>
+ </property>
+ </widget>
+ </item>
</layout>
</widget>
</item>
threadsHandler()->setThreads(threads);
threadsHandler()->setCurrentThreadId(currentThreadId);
updateViews(); // Adjust Threads combobox.
- if (m_hasInferiorThreadList) {
+ if (m_hasInferiorThreadList && debuggerCore()->boolSetting(ShowThreadNames)) {
postCommand("threadnames " +
debuggerCore()->action(MaximalStackDepth)->value().toByteArray(),
Discardable, CB(handleThreadNames), id);