Commit afd52c18 authored by Martin Flöser's avatar Martin Flöser

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
parent 4a0787c0
......@@ -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;
......
......@@ -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()) {
......
......@@ -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 ??
......
......@@ -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;
}
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment