Changeset View
Changeset View
Standalone View
Standalone View
src/qml/experimental/monitor.cpp
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Line(s) | 79 | if (m_totalFiles == 0) { | |||
---|---|---|---|---|---|
80 | fetchTotalFiles(); | 80 | fetchTotalFiles(); | ||
81 | } | 81 | } | ||
82 | m_filePath = filePath; | 82 | m_filePath = filePath; | ||
83 | if (++m_filesIndexed == m_totalFiles) { | 83 | if (++m_filesIndexed == m_totalFiles) { | ||
84 | m_filePath = QStringLiteral("Done"); | 84 | m_filePath = QStringLiteral("Done"); | ||
85 | } | 85 | } | ||
86 | Q_EMIT newFileIndexed(); | 86 | Q_EMIT newFileIndexed(); | ||
87 | 87 | | |||
88 | if (m_filesIndexed % (m_scheduler->getBatchSize() * 5) == 0) { | 88 | if (m_filesIndexed % 100 == 0) { | ||
89 | updateRemainingTime(); | 89 | updateRemainingTime(); | ||
90 | } | 90 | } | ||
91 | } | 91 | } | ||
92 | 92 | | |||
93 | QString Monitor::suspendState() const | 93 | QString Monitor::suspendState() const | ||
94 | { | 94 | { | ||
95 | return m_indexerState == Baloo::Suspended ? QStringLiteral("Resume") : QStringLiteral("Suspend"); | 95 | return m_indexerState == Baloo::Suspended ? QStringLiteral("Resume") : QStringLiteral("Suspend"); | ||
96 | } | 96 | } | ||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |