Make showTooltip() invokable from QML

It may become necessary for various reasons to want to programmatically
show a tooltip, like how the tooltip can be programmatically hidden.
This commit is contained in:
Nate Graham 2020-07-17 20:17:35 -06:00
parent b7ee696250
commit c505340e20

View File

@ -132,8 +132,6 @@ public:
QQuickItem *mainItem() const;
void setMainItem(QQuickItem *mainItem);
void showToolTip();
QString mainText() const;
void setMainText(const QString &mainText);
@ -161,6 +159,13 @@ public:
/// @endcond
public Q_SLOTS:
/**
* Shows the tooltip.
* @since 5.73
*/
void showToolTip();
/**
* Hides the tooltip if shown. Does not affect whether the tooltip area is active.
*/