Changeset View
Changeset View
Standalone View
Standalone View
src/project/projectmodel.cpp
Show First 20 Lines • Show All 710 Lines • ▼ Show 20 Line(s) | 710 | if (hasStats && fuzzy == 0 && untranslated == 0) | |||
---|---|---|---|---|---|
711 | return m_poComplIcon; | 711 | return m_poComplIcon; | ||
712 | else if (node->poRowNumber != -1) | 712 | else if (node->poRowNumber != -1) | ||
713 | return m_poIcon; | 713 | return m_poIcon; | ||
714 | else if (node->potRowNumber != -1) | 714 | else if (node->potRowNumber != -1) | ||
715 | return m_potIcon; | 715 | return m_potIcon; | ||
716 | default: | 716 | default: | ||
717 | return QVariant(); | 717 | return QVariant(); | ||
718 | } | 718 | } | ||
719 | case FuzzyUntrCountAllRole: | ||||
aacid: What's the difference between this and FuzzyUntrCountRole ? | |||||
FuzzyUntrCountRole only returns non-zero values for the .po files, not the folders (it is used to move from one file to the next, ignoring the folders). sdepiets: FuzzyUntrCountRole only returns non-zero values for the .po files, not the folders (it is used… | |||||
aacid: You marked this as done but didn't give me an answer? | |||||
sdepiets: Answer above, it was stuck in "unsubmitted" | |||||
720 | return hasStats?(fuzzy + untranslated):0; | ||||
719 | case FuzzyUntrCountRole: | 721 | case FuzzyUntrCountRole: | ||
720 | return item.isFile()?(fuzzy + untranslated):0; | 722 | return item.isFile()?(fuzzy + untranslated):0; | ||
721 | case FuzzyCountRole: | 723 | case FuzzyCountRole: | ||
722 | return item.isFile()?fuzzy:0; | 724 | return item.isFile()?fuzzy:0; | ||
723 | case UntransCountRole: | 725 | case UntransCountRole: | ||
724 | return item.isFile()?untranslated:0; | 726 | return item.isFile()?untranslated:0; | ||
725 | case TemplateOnlyRole: | 727 | case TemplateOnlyRole: | ||
726 | return item.isFile()?(node->poRowNumber == -1):0; | 728 | return item.isFile()?(node->poRowNumber == -1):0; | ||
▲ Show 20 Lines • Show All 752 Lines • Show Last 20 Lines |
What's the difference between this and FuzzyUntrCountRole ?