summaryrefslogtreecommitdiffstats
path: root/korganizer/koagendaitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/koagendaitem.h')
-rw-r--r--korganizer/koagendaitem.h70
1 files changed, 35 insertions, 35 deletions
diff --git a/korganizer/koagendaitem.h b/korganizer/koagendaitem.h
index 2595e9c9..39a71e7e 100644
--- a/korganizer/koagendaitem.h
+++ b/korganizer/koagendaitem.h
@@ -27,7 +27,7 @@
#include "cellitem.h"
-#include <qdatetime.h>
+#include <tqdatetime.h>
class QToolTipGroup;
class QDragEnterEvent;
@@ -71,11 +71,11 @@ struct MultiItemInfo
when the move started. The prev and next members of mStartMoveInfo are used
for that longer sequence including all (shown and hidden) items.
*/
-class KOAgendaItem : public QWidget, public KOrg::CellItem
+class KOAgendaItem : public TQWidget, public KOrg::CellItem
{
Q_OBJECT
public:
- KOAgendaItem(Incidence *incidence, const QDate &qd, QWidget *parent, const char *name=0,
+ KOAgendaItem(Incidence *incidence, const TQDate &qd, TQWidget *parent, const char *name=0,
WFlags f=0 );
int cellXLeft() const { return mCellXLeft; }
@@ -121,26 +121,26 @@ class KOAgendaItem : public QWidget, public KOrg::CellItem
bool setIncidence( Incidence * );
Incidence *incidence() const { return mIncidence; }
- QDate itemDate() { return mDate; }
+ TQDate itemDate() { return mDate; }
/** Update the date of this item's occurrence (not in the event) */
- void setItemDate( const QDate &qd );
+ void setItemDate( const TQDate &qd );
- void setText ( const QString & text ) { mLabelText = text; }
- QString text () { return mLabelText; }
+ void setText ( const TQString & text ) { mLabelText = text; }
+ TQString text () { return mLabelText; }
- static QToolTipGroup *toolTipGroup();
+ static TQToolTipGroup *toolTipGroup();
- QPtrList<KOAgendaItem> conflictItems();
- void setConflictItems(QPtrList<KOAgendaItem>);
+ TQPtrList<KOAgendaItem> conflictItems();
+ void setConflictItems(TQPtrList<KOAgendaItem>);
void addConflictItem(KOAgendaItem *ci);
- QString label() const;
+ TQString label() const;
bool overlaps( KOrg::CellItem * ) const;
- void setResourceColor( const QColor& color ) { mResourceColor = color; }
- QColor resourceColor() {return mResourceColor;}
+ void setResourceColor( const TQColor& color ) { mResourceColor = color; }
+ TQColor resourceColor() {return mResourceColor;}
signals:
void removeAgendaItem( KOAgendaItem* );
void showAgendaItem( KOAgendaItem* );
@@ -148,19 +148,19 @@ class KOAgendaItem : public QWidget, public KOrg::CellItem
public slots:
void updateIcons();
void select(bool=true);
- void addAttendee( const QString & );
+ void addAttendee( const TQString & );
protected:
- void dragEnterEvent(QDragEnterEvent *e);
- void dropEvent(QDropEvent *e);
- void paintEvent(QPaintEvent *e);
- void paintFrame(QPainter *p, const QColor &color);
- void paintEventIcon(QPainter *p, int &x, int ft);
- void paintTodoIcon(QPainter *p, int &x, int ft);
- void paintAlarmIcon(QPainter *p, int &x, int ft);
+ void dragEnterEvent(TQDragEnterEvent *e);
+ void dropEvent(TQDropEvent *e);
+ void paintEvent(TQPaintEvent *e);
+ void paintFrame(TQPainter *p, const TQColor &color);
+ void paintEventIcon(TQPainter *p, int &x, int ft);
+ void paintTodoIcon(TQPainter *p, int &x, int ft);
+ void paintAlarmIcon(TQPainter *p, int &x, int ft);
// paint all visible icons
- void paintIcons(QPainter *p, int &x, int ft);
+ void paintIcons(TQPainter *p, int &x, int ft);
/** private movement functions. startMove needs to be called of only one of
* the multitems. it will then loop through the whole series using
@@ -177,8 +177,8 @@ class KOAgendaItem : public QWidget, public KOrg::CellItem
int mSubCells; // Total number of subcells in cell of this item
Incidence *mIncidence; // corresponding event or todo
- QDate mDate; //date this events occurs (for recurrence)
- QString mLabelText;
+ TQDate mDate; //date this events occurs (for recurrence)
+ TQString mLabelText;
bool mIconAlarm, mIconRecur, mIconReadonly;
bool mIconReply, mIconGroup, mIconGroupTentative;
bool mIconOrganizer;
@@ -189,20 +189,20 @@ class KOAgendaItem : public QWidget, public KOrg::CellItem
// Variables to remember start position
MultiItemInfo* mStartMoveInfo;
//Color of the resource
- QColor mResourceColor;
+ TQColor mResourceColor;
private:
- static QToolTipGroup *mToolTipGroup;
+ static TQToolTipGroup *mToolTipGroup;
bool mSelected;
- QPtrList<KOAgendaItem> mConflictItems;
-
- static QPixmap *alarmPxmp;
- static QPixmap *recurPxmp;
- static QPixmap *readonlyPxmp;
- static QPixmap *replyPxmp;
- static QPixmap *groupPxmp;
- static QPixmap *groupPxmpTentative;
- static QPixmap *organizerPxmp;
+ TQPtrList<KOAgendaItem> mConflictItems;
+
+ static TQPixmap *alarmPxmp;
+ static TQPixmap *recurPxmp;
+ static TQPixmap *readonlyPxmp;
+ static TQPixmap *replyPxmp;
+ static TQPixmap *groupPxmp;
+ static TQPixmap *groupPxmpTentative;
+ static TQPixmap *organizerPxmp;
};
#endif