DynamicTip Class Reference
small helper class to dynamically show tooltips inside the day matrix. More...
#include <kodaymatrix.h>
Inheritance diagram for DynamicTip:

Public Methods | |
DynamicTip (QWidget *parent) | |
Protected Methods | |
void | maybeTip (const QPoint &pos) |
Detailed Description
small helper class to dynamically show tooltips inside the day matrix.This class asks the day matrix object for a appropriate label which is in our special case the name of the holiday or null if this day is no holiday.
Definition at line 53 of file kodaymatrix.h.
Constructor & Destructor Documentation
|
Constructor that expects a KODayMatrix object as parent.
Definition at line 67 of file kodaymatrix.cpp. |
Member Function Documentation
|
Qt's callback to ask the object to provide an approrpiate text for the tooltip to be shown.
Reimplemented from QToolTip. Definition at line 74 of file kodaymatrix.cpp. References QFrame::frameRect(), KODayMatrix::getHolidayLabel(), QRect::height(), QString::isEmpty(), QToolTip::tip(), QRect::width(), QPoint::x(), and QPoint::y(). |
The documentation for this class was generated from the following files: