diff --git a/decorations/decoratedclient.cpp b/decorations/decoratedclient.cpp index 519d94f8e3..83cbc43d54 100644 --- a/decorations/decoratedclient.cpp +++ b/decorations/decoratedclient.cpp @@ -170,7 +170,7 @@ void DecoratedClientImpl::requestShowWindowMenu() Workspace::self()->showWindowMenu(QRect(Cursor::pos(), Cursor::pos()), m_client); } -void DecoratedClientImpl::requestMaximize(Qt::MouseButtons buttons) +void DecoratedClientImpl::requestToggleMaximization(Qt::MouseButtons buttons) { Workspace::self()->performWindowOperation(m_client, options->operationMaxButtonClick(buttons)); } diff --git a/decorations/decoratedclient.h b/decorations/decoratedclient.h index 7a8b3afee5..fe870e1be2 100644 --- a/decorations/decoratedclient.h +++ b/decorations/decoratedclient.h @@ -69,7 +69,7 @@ public: void requestClose() override; void requestContextHelp() override; - void requestMaximize(Qt::MouseButtons buttons) override; + void requestToggleMaximization(Qt::MouseButtons buttons) override; void requestMinimize() override; void requestShowWindowMenu() override; void requestToggleKeepAbove() override; diff --git a/kcmkwin/kwindecoration/declarative-plugin/previewclient.cpp b/kcmkwin/kwindecoration/declarative-plugin/previewclient.cpp index 25da62ee17..7ee1fc28e0 100644 --- a/kcmkwin/kwindecoration/declarative-plugin/previewclient.cpp +++ b/kcmkwin/kwindecoration/declarative-plugin/previewclient.cpp @@ -380,7 +380,7 @@ void PreviewClient::requestContextHelp() qDebug() << "context help requested"; } -void PreviewClient::requestMaximize(Qt::MouseButtons buttons) +void PreviewClient::requestToggleMaximization(Qt::MouseButtons buttons) { if (buttons.testFlag(Qt::LeftButton)) { const bool set = !isMaximized(); diff --git a/kcmkwin/kwindecoration/declarative-plugin/previewclient.h b/kcmkwin/kwindecoration/declarative-plugin/previewclient.h index dfd52817c2..fbf2d8f297 100644 --- a/kcmkwin/kwindecoration/declarative-plugin/previewclient.h +++ b/kcmkwin/kwindecoration/declarative-plugin/previewclient.h @@ -96,7 +96,7 @@ public: void requestClose() override; void requestContextHelp() override; - void requestMaximize(Qt::MouseButtons buttons) override; + void requestToggleMaximization(Qt::MouseButtons buttons) override; void requestMinimize() override; void requestToggleKeepAbove() override; void requestToggleKeepBelow() override;