| 246 | } |
| 247 | |
| 248 | int QuickOpenModel::rowCount(const QModelIndex& i) const |
| 249 | { |
| 250 | if (i.isValid()) { |
| 251 | return 0; |
| 252 | } |
| 253 | |
| 254 | int count = 0; |
| 255 | for (const ProviderEntry& provider : m_providers) { |
| 256 | if (provider.enabled) { |
| 257 | count += provider.provider->itemCount(); |
| 258 | } |
| 259 | } |
| 260 | |
| 261 | return count; |
| 262 | } |
| 263 | |
| 264 | int QuickOpenModel::unfilteredRowCount() const |
| 265 | { |