| 458 | } |
| 459 | |
| 460 | bool QuickOpenModel::execute(const QModelIndex& index, QString& filterText) |
| 461 | { |
| 462 | qCDebug(PLUGIN_QUICKOPEN) << "executing model"; |
| 463 | if (!index.isValid()) { |
| 464 | qCWarning(PLUGIN_QUICKOPEN) << "Invalid index executed"; |
| 465 | return false; |
| 466 | } |
| 467 | |
| 468 | QuickOpenDataPointer item = getItem(index.row()); |
| 469 | |
| 470 | if (item) { |
| 471 | return item->execute(filterText); |
| 472 | } else { |
| 473 | qCWarning(PLUGIN_QUICKOPEN) << "Got no item for row " << index.row() << " "; |
| 474 | } |
| 475 | |
| 476 | return false; |
| 477 | } |
| 478 | |
| 479 | #include "moc_quickopenmodel.cpp" |