From 2fdafbb1338871910b912e2a16bf7b43aa7a57d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 11 Nov 2014 09:53:54 +0100 Subject: [PATCH] s/requestMaximize/requestToggleMaximization/g --- decorations/decoratedclient.cpp | 2 +- decorations/decoratedclient.h | 2 +- kcmkwin/kwindecoration/declarative-plugin/previewclient.cpp | 2 +- kcmkwin/kwindecoration/declarative-plugin/previewclient.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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;