resize on all four corners
svn path=/trunk/kdebase/kwin/; revision=60881
This commit is contained in:
parent
635d4edac6
commit
dc9fb7dc2b
3 changed files with 35 additions and 6 deletions
|
@ -236,6 +236,30 @@ TitleBar::paintEvent(QPaintEvent * e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
TitleBar::mousePressEvent(QMouseEvent * e)
|
||||||
|
{
|
||||||
|
text_->client()->fakeMouseEvent(e, this);
|
||||||
|
QWidget::mousePressEvent(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
TitleBar::mouseReleaseEvent(QMouseEvent * e)
|
||||||
|
{
|
||||||
|
text_->client()->fakeMouseEvent(e, this);
|
||||||
|
QWidget::mouseReleaseEvent(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
TitleBar::mouseMoveEvent(QMouseEvent * e)
|
||||||
|
{
|
||||||
|
text_->client()->fakeMouseEvent(e, this);
|
||||||
|
QWidget::mouseMoveEvent(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} // End namespace
|
} // End namespace
|
||||||
|
|
||||||
// vim:ts=2:sw=2:tw=78
|
// vim:ts=2:sw=2:tw=78
|
||||||
|
|
|
@ -54,6 +54,10 @@ class TitleBar : public QWidget
|
||||||
void resizeEvent(QResizeEvent *);
|
void resizeEvent(QResizeEvent *);
|
||||||
void paintEvent(QPaintEvent *);
|
void paintEvent(QPaintEvent *);
|
||||||
|
|
||||||
|
void mousePressEvent(QMouseEvent *);
|
||||||
|
void mouseReleaseEvent(QMouseEvent *);
|
||||||
|
void mouseMoveEvent(QMouseEvent *);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
CloseButton * close_;
|
CloseButton * close_;
|
||||||
|
|
|
@ -41,6 +41,7 @@ class TitleText : public DBWidget
|
||||||
virtual ~TitleText();
|
virtual ~TitleText();
|
||||||
|
|
||||||
void setActive(bool);
|
void setActive(bool);
|
||||||
|
Manager * client() { return client_; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue