korganizer Library API Documentation

DynamicTip Class Reference

small helper class to dynamically show tooltips inside the day matrix. More...

#include <kodaymatrix.h>

Inheritance diagram for DynamicTip:

QToolTip List of all members.

Public Member Functions

 DynamicTip (QWidget *parent)
 Constructor that expects a KODayMatrix object as parent.


Protected Member Functions

void maybeTip (const QPoint &pos)
 Qt's callback to ask the object to provide an approrpiate text for the tooltip to be shown.


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 51 of file kodaymatrix.h.


Constructor & Destructor Documentation

DynamicTip::DynamicTip QWidget parent  ) 
 

Constructor that expects a KODayMatrix object as parent.

Parameters:
parent the parent KODayMatrix control.

Definition at line 50 of file kodaymatrix.cpp.


Member Function Documentation

void DynamicTip::maybeTip const QPoint pos  )  [protected]
 

Qt's callback to ask the object to provide an approrpiate text for the tooltip to be shown.

Parameters:
pos coordinates of the mouse.

Reimplemented from QToolTip.

Definition at line 57 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:
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Oct 18 02:47:32 2003 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001