From 825ef11f1a5c6b00cd571c24525c84dca431eaa2 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 18 Jun 2021 16:08:40 +0400 Subject: [PATCH] Allow updating shown ImportantTooltip geometry. --- ui/widgets/tooltip.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/widgets/tooltip.h b/ui/widgets/tooltip.h index 7a6e2cd..c7c3d10 100644 --- a/ui/widgets/tooltip.h +++ b/ui/widgets/tooltip.h @@ -79,6 +79,7 @@ public: void toggleAnimated(bool visible); void toggleFast(bool visible); void hideAfter(crl::time timeout); + void updateGeometry(); void setHiddenCallback(Fn callback) { _hiddenCallback = std::move(callback); @@ -93,7 +94,6 @@ private: [[nodiscard]] QRect countInner() const; void countApproachSide(RectParts preferSide); void resizeToContent(); - void updateGeometry(); void checkAnimationFinish(); void refreshAnimationCache(); [[nodiscard]] QPoint countPosition() const;