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 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

DynamicTip::DynamicTip QWidget   parent
 

Constructor that expects a KODayMatrix object as parent.

Parameters:
parent  the parent KODayMatrix control.

Definition at line 67 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 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:
KDE Logo
This file is part of the documentation for korganizer Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:38:32 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003