[ToolTipArea] Add "aboutToShow" signal
This is emitted just before the tooltip is shown and allows the user to defer heavy lifting to when the dialog is actually shown. Differential Revision: https://phabricator.kde.org/D10381
This commit is contained in:
parent
42d3fde1ee
commit
e5dcc0b47f
@ -130,6 +130,8 @@ void ToolTip::showToolTip()
|
||||
return;
|
||||
}
|
||||
|
||||
emit aboutToShow();
|
||||
|
||||
ToolTipDialog *dlg = tooltipDialogInstance();
|
||||
|
||||
if (!mainItem()) {
|
||||
|
@ -187,6 +187,12 @@ Q_SIGNALS:
|
||||
void locationChanged();
|
||||
void activeChanged();
|
||||
void interactiveChanged();
|
||||
/**
|
||||
* Emitted just before the tooltip dialog is shown.
|
||||
*
|
||||
* @since 5.45
|
||||
*/
|
||||
void aboutToShow();
|
||||
|
||||
private Q_SLOTS:
|
||||
void settingsChanged(const QString &file);
|
||||
|
Loading…
Reference in New Issue
Block a user