KTutorial  0.5.1
Public Member Functions | Static Public Member Functions
ktutorial::extendedinformation::WidgetHighlighterManager Class Reference

Utility class to manage WidgetHighlighters. More...

#include <WidgetHighlighterManager.h>

List of all members.

Public Member Functions

void highlight (QWidget *widget)
 Starts a WidgetHighlighter for the given widget.
void stopHighlighting (QWidget *widget)
 Stops the WidgetHighlighter of the given widget.

Static Public Member Functions

static WidgetHighlighterManagerself ()
 Returns the only instance of this class.

Detailed Description

Utility class to manage WidgetHighlighters.

Starting and stopping the highlighting from WidgetHighlighterManager instead of using directly WidgetHighlighter ensures that no overlapping animations will be executed.

WidgetHighlighterManager also takes care of deleting the WidgetHighlighter when no longer needed, that is, when they are fully stopped (once the stop animation has ended).

See also:
WidgetHighlighter

Definition at line 45 of file WidgetHighlighterManager.h.


Member Function Documentation

Starts a WidgetHighlighter for the given widget.

If the widget was already being highlighted nothing is done. If a child widget was already being highlighted it is stopped, so only the parent highlighting is active.

Parameters:
widgetThe widget to highlight.

Definition at line 34 of file WidgetHighlighterManager.cpp.

References ktutorial::extendedinformation::WidgetHighlighter::start(), and stopHighlighting().

Returns the only instance of this class.

Returns:
The only instance of this class.

Definition at line 30 of file WidgetHighlighterManager.cpp.

Stops the WidgetHighlighter of the given widget.

Parameters:
widgetThe widget to stop highlighting.

Definition at line 50 of file WidgetHighlighterManager.cpp.

References ktutorial::extendedinformation::WidgetHighlighter::stop().

Referenced by highlight().


The documentation for this class was generated from the following files: