diff --git a/abstract_client.h b/abstract_client.h --- a/abstract_client.h +++ b/abstract_client.h @@ -348,7 +348,7 @@ * @see captionNormal * @see captionSuffix **/ - virtual QString caption(bool full = true) const = 0; + QString caption(bool full = true) const; /** * @returns The caption as set by the AbstractClient without any suffix. * @see caption diff --git a/abstract_client.cpp b/abstract_client.cpp --- a/abstract_client.cpp +++ b/abstract_client.cpp @@ -1766,4 +1766,17 @@ return workspace()->findAbstractClient(fetchNameInternalPredicate); } +QString AbstractClient::caption(bool full) const +{ + QString cap = captionNormal(); + if (full) { + cap += captionSuffix(); + if (unresponsive()) { + cap += QLatin1String(" "); + cap += i18nc("Application is not responding, appended to window title", "(Not Responding)"); + } + } + return cap; +} + } diff --git a/client.h b/client.h --- a/client.h +++ b/client.h @@ -219,7 +219,6 @@ void setBlockingCompositing(bool block); inline bool isBlockingCompositing() { return blocks_compositing; } - QString caption(bool full = true) const override; QString captionNormal() const override { return cap_normal; } diff --git a/client.cpp b/client.cpp --- a/client.cpp +++ b/client.cpp @@ -1496,22 +1496,6 @@ } } -/** - * \reimp - */ -QString Client::caption(bool full) const -{ - QString cap = cap_normal; - if (full) { - cap += cap_suffix; - if (unresponsive()) { - cap += QLatin1String(" "); - cap += i18nc("Application is not responding, appended to window title", "(Not Responding)"); - } - } - return cap; -} - bool Client::tabTo(Client *other, bool behind, bool activate) { Q_ASSERT(other && other != this); diff --git a/shell_client.h b/shell_client.h --- a/shell_client.h +++ b/shell_client.h @@ -63,7 +63,6 @@ } void blockActivityUpdates(bool b = true) override; - QString caption(bool full = true) const override; QString captionNormal() const override { return m_caption; } diff --git a/shell_client.cpp b/shell_client.cpp --- a/shell_client.cpp +++ b/shell_client.cpp @@ -561,15 +561,6 @@ Q_UNUSED(b) } -QString ShellClient::caption(bool full) const -{ - QString caption = m_caption; - if (full) { - caption += m_captionSuffix; - } - return caption; -} - void ShellClient::updateCaption() { const QString oldSuffix = m_captionSuffix;