resize on all four corners

svn path=/trunk/kdebase/kwin/; revision=60881
This commit is contained in:
Matthias Ettrich 2000-08-13 16:32:51 +00:00
parent 635d4edac6
commit dc9fb7dc2b
3 changed files with 35 additions and 6 deletions

View file

@ -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
// vim:ts=2:sw=2:tw=78

View file

@ -54,6 +54,10 @@ class TitleBar : public QWidget
void resizeEvent(QResizeEvent *);
void paintEvent(QPaintEvent *);
void mousePressEvent(QMouseEvent *);
void mouseReleaseEvent(QMouseEvent *);
void mouseMoveEvent(QMouseEvent *);
private:
CloseButton * close_;

View file

@ -41,6 +41,7 @@ class TitleText : public DBWidget
virtual ~TitleText();
void setActive(bool);
Manager * client() { return client_; }
protected: