Changeset View
Changeset View
Standalone View
Standalone View
plugins/grepview/grepoutputmodel.cpp
Show First 20 Lines • Show All 382 Lines • ▼ Show 20 Line(s) | 375 | { | |||
---|---|---|---|---|---|
383 | } | 383 | } | ||
384 | 384 | | |||
385 | m_fileCount += 1; | 385 | m_fileCount += 1; | ||
386 | m_matchCount += items.length(); | 386 | m_matchCount += items.length(); | ||
387 | 387 | | |||
388 | const QString matchText = i18np("<b>1</b> match", "<b>%1</b> matches", m_matchCount); | 388 | const QString matchText = i18np("<b>1</b> match", "<b>%1</b> matches", m_matchCount); | ||
389 | const QString fileText = i18np("<b>1</b> file", "<b>%1</b> files", m_fileCount); | 389 | const QString fileText = i18np("<b>1</b> file", "<b>%1</b> files", m_fileCount); | ||
390 | 390 | | |||
391 | m_rootItem->setText(i18nc("%1 is e.g. '4 matches', %2 is e.g. '1 file'", "<h3>%1 in %2</h3>", matchText, fileText)); | 391 | m_rootItem->setText(i18nc("%1 is e.g. '4 matches', %2 is e.g. '1 file'", "<b>%1 in %2</b>", matchText, fileText)); | ||
392 | 392 | | |||
393 | QString fnString = i18np("<big>%2 <i>(one match)</i></big>", "<big>%2 <i>(%1 matches)</i></big>", | 393 | QString fnString = i18np("%2: 1 match", "%2: %1 matches", | ||
394 | items.length(), ICore::self()->projectController()->prettyFileName(QUrl::fromLocalFile(filename))); | 394 | items.length(), ICore::self()->projectController()->prettyFileName(QUrl::fromLocalFile(filename))); | ||
395 | 395 | | |||
396 | GrepOutputItem *fileItem = new GrepOutputItem(filename, fnString, m_itemsCheckable); | 396 | GrepOutputItem *fileItem = new GrepOutputItem(filename, fnString, m_itemsCheckable); | ||
397 | m_rootItem->appendRow(fileItem); | 397 | m_rootItem->appendRow(fileItem); | ||
398 | foreach( const GrepOutputItem& item, items ) | 398 | foreach( const GrepOutputItem& item, items ) | ||
399 | { | 399 | { | ||
400 | GrepOutputItem* copy = new GrepOutputItem(item); | 400 | GrepOutputItem* copy = new GrepOutputItem(item); | ||
401 | copy->setCheckable(m_itemsCheckable); | 401 | copy->setCheckable(m_itemsCheckable); | ||
▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines |