mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-14 02:52:12 +01:00
Merge pull request #619 from ff2000/master
remove CloseButton::hideEvent()
This commit is contained in:
commit
af7a85913e
|
@ -647,15 +647,6 @@ void CloseButton::leaveEvent(QEvent* event)
|
||||||
QAbstractButton::leaveEvent(event);
|
QAbstractButton::leaveEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CloseButton::hideEvent(QHideEvent* event)
|
|
||||||
{
|
|
||||||
QAbstractButton::hideEvent(event);
|
|
||||||
|
|
||||||
if (!isVisible()) {
|
|
||||||
deleteLater();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void CloseButton::paintEvent(QPaintEvent*)
|
void CloseButton::paintEvent(QPaintEvent*)
|
||||||
{
|
{
|
||||||
QPainter p(this);
|
QPainter p(this);
|
||||||
|
|
|
@ -128,7 +128,6 @@ public:
|
||||||
|
|
||||||
void enterEvent(QEvent* event);
|
void enterEvent(QEvent* event);
|
||||||
void leaveEvent(QEvent* event);
|
void leaveEvent(QEvent* event);
|
||||||
void hideEvent(QHideEvent* event);
|
|
||||||
void paintEvent(QPaintEvent* event);
|
void paintEvent(QPaintEvent* event);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user