From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- korganizer/koagendaitem.h | 70 +++++++++++++++++++++++------------------------ 1 file changed, 35 insertions(+), 35 deletions(-) (limited to 'korganizer/koagendaitem.h') 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 +#include 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 conflictItems(); - void setConflictItems(QPtrList); + TQPtrList conflictItems(); + void setConflictItems(TQPtrList); 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 mConflictItems; - - static QPixmap *alarmPxmp; - static QPixmap *recurPxmp; - static QPixmap *readonlyPxmp; - static QPixmap *replyPxmp; - static QPixmap *groupPxmp; - static QPixmap *groupPxmpTentative; - static QPixmap *organizerPxmp; + TQPtrList mConflictItems; + + static TQPixmap *alarmPxmp; + static TQPixmap *recurPxmp; + static TQPixmap *readonlyPxmp; + static TQPixmap *replyPxmp; + static TQPixmap *groupPxmp; + static TQPixmap *groupPxmpTentative; + static TQPixmap *organizerPxmp; }; #endif -- cgit v1.2.3