| 58 | |
| 59 | |
| 60 | void DebuggerStatusBarWidget::setStatusText(const QString& text) |
| 61 | { |
| 62 | setToolTip(text); |
| 63 | QString displayText = text; |
| 64 | if (displayText.length() >= STATUS_STRING_MAX_LEN) |
| 65 | displayText = displayText.left(STATUS_STRING_MAX_LEN - 3) + "..."; |
| 66 | |
| 67 | m_status->setText(displayText); |
| 68 | m_parent->setFixedWidth(m_status->sizeHint().width()); |
| 69 | } |
| 70 | |
| 71 | |
| 72 | void DebuggerStatusBarWidget::updateStatusText(const DebuggerEvent& event) |