korganizer
koincidencetooltip.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef KOINCIDENCETOOLTIP_H
00024 #define KOINCIDENCETOOLTIP_H
00025
00026 #include <qtooltip.h>
00027
00028 namespace KCal
00029 {
00030 class Calendar;
00031 class Incidence;
00032 }
00033 using namespace KCal;
00034
00035 class KOAgendaItem;
00036
00040 class KOIncidenceToolTip : public QToolTip
00041 {
00042 public:
00043 KOIncidenceToolTip( QWidget *widget, Calendar *calendar, const QDate &date, QToolTipGroup *group = 0 )
00044 : QToolTip (widget, group), mCalendar( calendar ), mDate( date ), mText(0) {}
00045
00046
00047 public:
00048 static void add ( QWidget *widget, Calendar *calendar,
00049 Incidence *incidence, const QDate &date=QDate(),
00050 QToolTipGroup *group = 0, const QString &longText = "" );
00051 static void add( KOAgendaItem *item, Calendar *calendar,
00052 Incidence *incidence = 0, const QDate &date=QDate(),
00053 QToolTipGroup *group = 0 );
00054
00055
00056 void maybeTip( const QPoint &pos );
00057
00058 private:
00059 Calendar *mCalendar;
00060 QDate mDate;
00061 QString mText;
00062 };
00063
00064 #endif
|