Project

General

Profile

Feature #2799

On-demand loading of tooltip (XHTML) text

Added by Koen Deforche over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Michael Vilsker
Target version:
Start date:
03/11/2014
Due date:
% Done:

0%

Estimated time:

Description

Change the signature of the virtual WWidget::toolTip() function:

virtual WString toolTip() const

The base implementation is as currently (i.e. returns text set by setToolTip()) but user can reimplement it to have on-demand loading of the tooltip text.

ToolTip.js should be modified to fetch the tool tip text using a JSignal.

In WItemDelegate modify so that the WText::setToolTip() does not actually fetch the tooltip; probably it needs a new flag to indicate the availability of tooltip data. If the flag is not present we keep the current behavior; otherwise we get the new behavior with a specialized WText::toolTip().

Also available in: Atom PDF