Changeset View
Changeset View
Standalone View
Standalone View
abstract_client.cpp
Show First 20 Lines • Show All 1752 Lines • ▼ Show 20 Line(s) | |||||
1753 | QString AbstractClient::shortcutCaptionSuffix() const | 1753 | QString AbstractClient::shortcutCaptionSuffix() const | ||
1754 | { | 1754 | { | ||
1755 | if (shortcut().isEmpty()) { | 1755 | if (shortcut().isEmpty()) { | ||
1756 | return QString(); | 1756 | return QString(); | ||
1757 | } | 1757 | } | ||
1758 | return QLatin1String(" {") + shortcut().toString() + QLatin1Char('}'); | 1758 | return QLatin1String(" {") + shortcut().toString() + QLatin1Char('}'); | ||
1759 | } | 1759 | } | ||
1760 | 1760 | | |||
1761 | AbstractClient *AbstractClient::findClientWithSameCaption() const | ||||
1762 | { | ||||
1763 | auto fetchNameInternalPredicate = [this](const AbstractClient *cl) { | ||||
1764 | return (!cl->isSpecialWindow() || cl->isToolbar()) && cl != this && cl->captionNormal() == captionNormal() && cl->captionSuffix() == captionSuffix(); | ||||
1765 | }; | ||||
1766 | return workspace()->findAbstractClient(fetchNameInternalPredicate); | ||||
1767 | } | ||||
1768 | | ||||
1761 | } | 1769 | } |