Drop the stripped parameter from AbstractClient::caption

Summary:
The parameter is not used anywhere in KWin. Only the default value was
used. So let's drop this.

Test Plan: Compiles

Reviewers: #kwin, #plasma

Subscribers: plasma-devel, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D7059
This commit is contained in:
Martin Flöser 2017-08-02 07:10:42 +02:00
parent 4a0787c058
commit afd52c188a
5 changed files with 6 additions and 7 deletions

View file

@ -343,7 +343,7 @@ public:
}
virtual void updateMouseGrab();
virtual QString caption(bool full = true, bool stripped = false) const = 0;
virtual QString caption(bool full = true) const = 0;
virtual bool isCloseable() const = 0;
// TODO: remove boolean trap
virtual bool isShown(bool shaded_is_shown) const = 0;

View file

@ -1527,9 +1527,9 @@ void Client::fetchIconicName()
/**
* \reimp
*/
QString Client::caption(bool full, bool stripped) const
QString Client::caption(bool full) const
{
QString cap = stripped ? cap_deco : cap_normal;
QString cap = cap_normal;
if (full) {
cap += cap_suffix;
if (unresponsive()) {

View file

@ -219,7 +219,7 @@ public:
void setBlockingCompositing(bool block);
inline bool isBlockingCompositing() { return blocks_compositing; }
QString caption(bool full = true, bool stripped = false) const override;
QString caption(bool full = true) const override;
using AbstractClient::keyPressEvent;
void keyPressEvent(uint key_code, xcb_timestamp_t time); // FRAME ??

View file

@ -554,10 +554,9 @@ void ShellClient::blockActivityUpdates(bool b)
Q_UNUSED(b)
}
QString ShellClient::caption(bool full, bool stripped) const
QString ShellClient::caption(bool full) const
{
Q_UNUSED(full)
Q_UNUSED(stripped)
return m_caption;
}

View file

@ -63,7 +63,7 @@ public:
}
void blockActivityUpdates(bool b = true) override;
QString caption(bool full = true, bool stripped = false) const override;
QString caption(bool full = true) const override;
void closeWindow() override;
AbstractClient *findModal(bool allow_itself = false) override;
bool isCloseable() const override;