Use QEnterEvent for new enterEvent parameters

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2022-11-23 17:49:34 +01:00 committed by Matthieu Gallien
parent 7e1448bcf2
commit 7a17a51a25
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ void LinkLabel::setUrl(const QUrl &url)
this->url = url;
}
void LinkLabel::enterEvent(QEvent * /*event*/)
void LinkLabel::enterEvent(QEnterEvent * /*event*/)
{
setFontUnderline(true);
setCursor(Qt::PointingHandCursor);

View file

@ -31,7 +31,7 @@ signals:
void clicked();
protected:
void enterEvent(QEvent *event) override;
void enterEvent(QEnterEvent *event) override;
void leaveEvent(QEvent *event) override;