Use new common maximize() method.
svn path=/trunk/kdebase/kwin/; revision=332170
This commit is contained in:
parent
e8332d6f24
commit
f97504d748
2 changed files with 2 additions and 13 deletions
|
@ -424,18 +424,7 @@ void LaptopClient::init()
|
|||
|
||||
void LaptopClient::slotMaximize()
|
||||
{
|
||||
switch (button[BtnMax]->last_button) {
|
||||
case MidButton:
|
||||
maximize( maximizeMode() ^ MaximizeVertical );
|
||||
break;
|
||||
case RightButton:
|
||||
maximize( maximizeMode() ^ MaximizeHorizontal );
|
||||
break;
|
||||
case LeftButton:
|
||||
default:
|
||||
maximize(maximizeMode() == MaximizeFull ? MaximizeRestore : MaximizeFull);
|
||||
break;
|
||||
}
|
||||
maximize(button[BtnMax]->last_button);
|
||||
}
|
||||
|
||||
void LaptopClient::resizeEvent(QResizeEvent* e)
|
||||
|
|
|
@ -29,7 +29,7 @@ public:
|
|||
void setBitmap(const unsigned char *bitmap);
|
||||
void reset();
|
||||
QSize sizeHint() const;
|
||||
int last_button;
|
||||
ButtonState last_button;
|
||||
|
||||
protected:
|
||||
void mousePressEvent( QMouseEvent* e )
|
||||
|
|
Loading…
Reference in a new issue