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, QToolTipGroup *group = 0 )
00044 : QToolTip (widget, group), mCalendar( calendar ), mText(0) {}
00045
00046
00047 public:
00048 static void add ( QWidget *widget, Calendar *calendar,
00049 Incidence *incidence, QToolTipGroup *group = 0,
00050 const QString &longText = "" );
00051 static void add( KOAgendaItem *item, Calendar *calendar,
00052 Incidence *incidence = 0, QToolTipGroup *group = 0 );
00053
00054
00055 void maybeTip( const QPoint &pos );
00056
00057 private:
00058 Calendar *mCalendar;
00059 QString mText;
00060 };
00061
00062 #endif
|