! Returns the current selection in the list of plugins. */
| 122 | Returns the current selection in the list of plugins. |
| 123 | */ |
| 124 | PluginSpec *PluginView::currentPlugin() const |
| 125 | { |
| 126 | if (!m_ui->categoryWidget->currentItem()) |
| 127 | return 0; |
| 128 | if (!m_ui->categoryWidget->currentItem()->data(0, Qt::UserRole).isNull()) |
| 129 | return m_ui->categoryWidget->currentItem()->data(0, Qt::UserRole).value<PluginSpec *>(); |
| 130 | return 0; |
| 131 | } |
| 132 | |
| 133 | void PluginView::updateList() |
| 134 | { |
no test coverage detected