use new maximize() overload
svn path=/trunk/kdebase/kwin/; revision=332509
This commit is contained in:
parent
90b3ffe728
commit
5cef676ab8
2 changed files with 4 additions and 13 deletions
|
@ -330,7 +330,8 @@ QValueList< QuartzHandler::BorderSize > QuartzHandler::borderSizes() const
|
|||
QuartzButton::QuartzButton(QuartzClient *parent, const char *name, bool largeButton,
|
||||
bool isLeftButton, bool isOnAllDesktopsButton, const unsigned char *bitmap,
|
||||
const QString& tip, const int realizeBtns)
|
||||
: QButton(parent->widget(), name)
|
||||
: QButton(parent->widget(), name),
|
||||
last_button(NoButton)
|
||||
{
|
||||
setTipText(tip);
|
||||
setCursor(ArrowCursor);
|
||||
|
@ -674,17 +675,7 @@ void QuartzClient::slotMaximize()
|
|||
{
|
||||
if (button[BtnMax])
|
||||
{
|
||||
switch (button[BtnMax]->last_button)
|
||||
{
|
||||
case MidButton:
|
||||
maximize(maximizeMode() ^ MaximizeVertical );
|
||||
break;
|
||||
case RightButton:
|
||||
maximize(maximizeMode() ^ MaximizeHorizontal );
|
||||
break;
|
||||
default:
|
||||
maximize(maximizeMode() == MaximizeFull ? MaximizeRestore : MaximizeFull );
|
||||
}
|
||||
maximize(button[BtnMax]->last_button);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ class QuartzButton : public QButton
|
|||
void setBitmap(const unsigned char *bitmap);
|
||||
void setTipText(const QString &tip);
|
||||
QSize sizeHint() const;
|
||||
int last_button;
|
||||
ButtonState last_button;
|
||||
void turnOn( bool isOn );
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Reference in a new issue