Changeset View
Changeset View
Standalone View
Standalone View
AnnotationDialog/ListSelect.cpp
| Show First 20 Lines • Show All 713 Lines • ▼ Show 20 Line(s) | 708 | if (searchForUntaggedImagesTagNeeded()) { | |||
|---|---|---|---|---|---|
| 714 | } | 714 | } | ||
| 715 | } | 715 | } | ||
| 716 | 716 | | |||
| 717 | switch(m_mode) { | 717 | switch(m_mode) { | ||
| 718 | case InputMultiImageConfigMode: | 718 | case InputMultiImageConfigMode: | ||
| 719 | if (itemsUnchanged().size() > 0) { | 719 | if (itemsUnchanged().size() > 0) { | ||
| 720 | // if min != max | 720 | // if min != max | ||
| 721 | // tri-state selection -> show min-max (selected items vs. partially selected items): | 721 | // tri-state selection -> show min-max (selected items vs. partially selected items): | ||
| 722 | parentWidget()->setWindowTitle(i18nc( | 722 | parentWidget()->setWindowTitle(i18nc("@title:window Category name, then min-max of selected tags across several images. E.g. 'People (1-2)'", "%1 (%2-%3)", | ||
| 723 | "Category name, then min-max of selected tags across several images. E.g. 'People (1-2)'", | | |||
| 724 | "%1 (%2-%3)", | | |||
| 725 | m_baseTitle, | 723 | m_baseTitle, | ||
| 726 | itemsOnCount, | 724 | itemsOnCount, | ||
| 727 | itemsOnCount + itemsUnchanged().size() ) | 725 | itemsOnCount + itemsUnchanged().size())); | ||
| 728 | ); | | |||
| 729 | break; | 726 | break; | ||
| 730 | } // else fall through and only show one number: | 727 | } // else fall through and only show one number: | ||
| 731 | /* FALLTHROUGH */ | 728 | /* FALLTHROUGH */ | ||
| 732 | case InputSingleImageConfigMode: | 729 | case InputSingleImageConfigMode: | ||
| 733 | if (itemsOnCount > 0) { | 730 | if (itemsOnCount > 0) { | ||
| 734 | // if any tags have been selected | 731 | // if any tags have been selected | ||
| 735 | // "normal" on/off states -> show selected items | 732 | // "normal" on/off states -> show selected items | ||
| 736 | parentWidget()->setWindowTitle( | 733 | parentWidget()->setWindowTitle(i18nc("@title:window Category name, then number of selected tags. E.g. 'People (1)'", "%1 (%2)", | ||
| 737 | i18nc("Category name, then number of selected tags. E.g. 'People (1)'", | 734 | m_baseTitle, | ||
| 738 | "%1 (%2)", | 735 | itemsOnCount)); | ||
| 739 | m_baseTitle, itemsOnCount)); | | |||
| 740 | break; | 736 | break; | ||
| 741 | } // else fall through and only show category | 737 | } // else fall through and only show category | ||
| 742 | /* FALLTHROUGH */ | 738 | /* FALLTHROUGH */ | ||
| 743 | case SearchMode: | 739 | case SearchMode: | ||
| 744 | // no indicator while searching | 740 | // no indicator while searching | ||
| 745 | parentWidget()->setWindowTitle(m_baseTitle); | 741 | parentWidget()->setWindowTitle(m_baseTitle); | ||
| 746 | break; | 742 | break; | ||
| 747 | } | 743 | } | ||
| ▲ Show 20 Lines • Show All 129 Lines • Show Last 20 Lines | |||||