From 5ebc6b865de31b84faa353f6a85a76734c06ebe4 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Tue, 5 Jul 2022 13:18:45 +0200 Subject: Don't reinterpret_cast QEvent We know that we'll be a `QHelpEvent` from `QEvent::ToolTip`, so do a static_cast from the event handler (where it's obvious from context), and then pass it along to `tryShowNameToolTip`. --- src/views/dolphinview.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/views/dolphinview.h') diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h index 33d432c9e..62ced31ac 100644 --- a/src/views/dolphinview.h +++ b/src/views/dolphinview.h @@ -35,6 +35,7 @@ class VersionControlObserver; class ViewProperties; class QLabel; class QGraphicsSceneDragDropEvent; +class QHelpEvent; class QRegularExpression; /** @@ -862,7 +863,7 @@ private: void updatePlaceholderLabel(); - void tryShowNameToolTip(QEvent* event); + void tryShowNameToolTip(QHelpEvent* event); private: void updatePalette(); -- cgit v1.3