| 398 | } |
| 399 | |
| 400 | QWidget* OutputWidget::currentWidget() const |
| 401 | { |
| 402 | QWidget* widget; |
| 403 | if( data->type & KDevelop::IOutputView::MultipleView ) |
| 404 | { |
| 405 | widget = m_tabwidget->currentWidget(); |
| 406 | } else if( data->type & KDevelop::IOutputView::HistoryView ) |
| 407 | { |
| 408 | widget = m_stackwidget->currentWidget(); |
| 409 | } else |
| 410 | { |
| 411 | widget = m_views.begin()->view; |
| 412 | } |
| 413 | return widget; |
| 414 | } |
| 415 | |
| 416 | KDevelop::IOutputViewModel *OutputWidget::outputViewModel() const |
| 417 | { |