KTutorial
0.5.1
|
Utility class to manage WidgetHighlighters. More...
#include <WidgetHighlighterManager.h>
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 WidgetHighlighterManager * | self () |
Returns the only instance of this class. |
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).
Definition at line 45 of file WidgetHighlighterManager.h.
void ktutorial::extendedinformation::WidgetHighlighterManager::highlight | ( | QWidget * | widget | ) |
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.
widget | The widget to highlight. |
Definition at line 34 of file WidgetHighlighterManager.cpp.
References ktutorial::extendedinformation::WidgetHighlighter::start(), and stopHighlighting().
WidgetHighlighterManager * ktutorial::extendedinformation::WidgetHighlighterManager::self | ( | ) | [static] |
Returns the only instance of this class.
Definition at line 30 of file WidgetHighlighterManager.cpp.
void ktutorial::extendedinformation::WidgetHighlighterManager::stopHighlighting | ( | QWidget * | widget | ) |
Stops the WidgetHighlighter of the given widget.
widget | The widget to stop highlighting. |
Definition at line 50 of file WidgetHighlighterManager.cpp.
References ktutorial::extendedinformation::WidgetHighlighter::stop().
Referenced by highlight().