- explicit ToolTipManager(QAbstractItemView* parent,
- DolphinSortFilterProxyModel* model);
- virtual ~ToolTipManager();
+ enum class HideBehavior {
+ Instantly,
+ Later
+ };
+
+ explicit ToolTipManager(QWidget* parent);
+ ~ToolTipManager() override;
+
+ /**
+ * Triggers the showing of the tooltip for the item \p item
+ * where the item has the maximum boundaries of \p itemRect.
+ * The tooltip manager takes care that the tooltip is shown
+ * slightly delayed and with a proper \p transientParent.
+ */
+ void showToolTip(const KFileItem& item, const QRectF& itemRect, QWindow *transientParent);