Changeset View
Changeset View
Standalone View
Standalone View
abstract_client.cpp
Show First 20 Lines • Show All 1760 Lines • ▼ Show 20 Line(s) | |||||
1761 | AbstractClient *AbstractClient::findClientWithSameCaption() const | 1761 | AbstractClient *AbstractClient::findClientWithSameCaption() const | ||
1762 | { | 1762 | { | ||
1763 | auto fetchNameInternalPredicate = [this](const AbstractClient *cl) { | 1763 | auto fetchNameInternalPredicate = [this](const AbstractClient *cl) { | ||
1764 | return (!cl->isSpecialWindow() || cl->isToolbar()) && cl != this && cl->captionNormal() == captionNormal() && cl->captionSuffix() == captionSuffix(); | 1764 | return (!cl->isSpecialWindow() || cl->isToolbar()) && cl != this && cl->captionNormal() == captionNormal() && cl->captionSuffix() == captionSuffix(); | ||
1765 | }; | 1765 | }; | ||
1766 | return workspace()->findAbstractClient(fetchNameInternalPredicate); | 1766 | return workspace()->findAbstractClient(fetchNameInternalPredicate); | ||
1767 | } | 1767 | } | ||
1768 | 1768 | | |||
1769 | QString AbstractClient::caption(bool full) const | ||||
1770 | { | ||||
1771 | QString cap = captionNormal(); | ||||
1772 | if (full) { | ||||
1773 | cap += captionSuffix(); | ||||
1774 | if (unresponsive()) { | ||||
1775 | cap += QLatin1String(" "); | ||||
1776 | cap += i18nc("Application is not responding, appended to window title", "(Not Responding)"); | ||||
1777 | } | ||||
1778 | } | ||||
1779 | return cap; | ||||
1780 | } | ||||
1781 | | ||||
1769 | } | 1782 | } |