! * returns the path of the currently selected example project. */
| 200 | * returns the path of the currently selected example project. |
| 201 | */ |
| 202 | QString ExamplesWidget::path() const { |
| 203 | QString name; |
| 204 | if (ui.stackedWidget->currentIndex() == 0) |
| 205 | name = ui.lvExamples->currentIndex().data(Qt::DisplayRole).toString(); |
| 206 | else |
| 207 | name = ui.lwExamples->currentItem()->text(); |
| 208 | |
| 209 | return m_manager->path(name); |
| 210 | } |
no test coverage detected