From e94ef322f88561decdab7438db19852223c567a9 Mon Sep 17 00:00:00 2001 From: Luciano Montanaro Date: Sun, 25 Jul 2004 13:49:19 +0000 Subject: [PATCH] Resize should work on button press, not on click. svn path=/trunk/kdebase/kwin/; revision=332574 --- clients/b2/b2client.cpp | 6 +++--- clients/b2/b2client.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clients/b2/b2client.cpp b/clients/b2/b2client.cpp index 684b18d758..2d0a8e5e7a 100644 --- a/clients/b2/b2client.cpp +++ b/clients/b2/b2client.cpp @@ -307,7 +307,7 @@ void B2Client::shadeButtonClicked() setShade(!isShade()); } -void B2Client::resizeButtonClicked() +void B2Client::resizeButtonPressed() { performWindowOperation(ResizeOp); } @@ -484,8 +484,8 @@ void B2Client::addButtons(const QString& s, const QString tips[], if (isResizable() && !button[BtnResize]) { button[BtnResize] = new B2Button(this, tb, tips[BtnResize]); button[BtnResize]->setPixmaps(P_RESIZE); - connect(button[BtnResize], SIGNAL(clicked()), - this, SLOT(resizeButtonClicked())); + connect(button[BtnResize], SIGNAL(pressed()), + this, SLOT(resizeButtonPressed())); titleLayout->addWidget(button[BtnResize]); } break; diff --git a/clients/b2/b2client.h b/clients/b2/b2client.h index c298dae238..4e8ba6b2df 100644 --- a/clients/b2/b2client.h +++ b/clients/b2/b2client.h @@ -125,7 +125,7 @@ private slots: //void slotReset(); void maxButtonClicked(); void shadeButtonClicked(); - void resizeButtonClicked(); + void resizeButtonPressed(); private: void addButtons(const QString& s, const QString tips[], B2Titlebar* tb, QBoxLayout* titleLayout);