| 350 | } |
| 351 | |
| 352 | void ProjectItemDataProvider::enableData(const QStringList& items, const QStringList& scopes) |
| 353 | { |
| 354 | //FIXME: property support different scopes |
| 355 | if (scopes.contains(i18nc("@item quick open scope", "Project"))) { |
| 356 | m_itemTypes = NoItems; |
| 357 | if (items.contains(i18nc("@item quick open item type", "Classes"))) { |
| 358 | m_itemTypes = ( ItemTypes )(m_itemTypes | Classes); |
| 359 | } |
| 360 | if (items.contains(i18nc("@item quick open item type", "Functions"))) { |
| 361 | m_itemTypes = ( ItemTypes )(m_itemTypes | Functions); |
| 362 | } |
| 363 | } else { |
| 364 | m_itemTypes = NoItems; |
| 365 | } |
| 366 | } |
| 367 | |
| 368 | #include "moc_projectitemquickopen.cpp" |
no test coverage detected