| 261 | } |
| 262 | |
| 263 | void GDBOutputWidget::setShowInternalCommands(bool show) |
| 264 | { |
| 265 | if (show != m_showInternalCommands) |
| 266 | { |
| 267 | m_showInternalCommands = show; |
| 268 | |
| 269 | // Set of strings to show changes, text edit still has old |
| 270 | // set. Refresh. |
| 271 | m_gdbView->clear(); |
| 272 | const QStringList& newList = |
| 273 | m_showInternalCommands ? m_allCommands : m_userCommands_; |
| 274 | |
| 275 | for (auto& line : newList) { |
| 276 | // Note that color formatting is already applied to 'line'. |
| 277 | showLine(line); |
| 278 | } |
| 279 | } |
| 280 | } |
| 281 | |
| 282 | void GDBOutputWidget::slotGDBCmd() |
| 283 | { |