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/kotodoview.h | 90 ++++++++++++++++++++++++------------------------- 1 file changed, 45 insertions(+), 45 deletions(-) (limited to 'korganizer/kotodoview.h') diff --git a/korganizer/kotodoview.h b/korganizer/kotodoview.h index aee9037ea..881d92358 100644 --- a/korganizer/kotodoview.h +++ b/korganizer/kotodoview.h @@ -25,8 +25,8 @@ #ifndef KOTODOVIEW_H #define KOTODOVIEW_H -#include -#include +#include +#include #include @@ -58,10 +58,10 @@ using namespace KOrg; class KOTodoListViewToolTip : public QToolTip { public: - KOTodoListViewToolTip( QWidget *parent, KOTodoListView *lv ); + KOTodoListViewToolTip( TQWidget *parent, KOTodoListView *lv ); protected: - void maybeTip( const QPoint &pos ); + void maybeTip( const TQPoint &pos ); private: KOTodoListView *todolist; @@ -72,7 +72,7 @@ class KOTodoListView : public KListView { Q_OBJECT public: - KOTodoListView( QWidget *parent = 0, const char *name = 0 ); + KOTodoListView( TQWidget *parent = 0, const char *name = 0 ); ~KOTodoListView(); void setCalendar( Calendar * ); @@ -80,25 +80,25 @@ class KOTodoListView : public KListView void setIncidenceChanger( IncidenceChangerBase *changer ) { mChanger = changer; } protected: - virtual bool event( QEvent * ); + virtual bool event( TQEvent * ); - void contentsDragEnterEvent( QDragEnterEvent * ); - void contentsDragMoveEvent( QDragMoveEvent * ); - void contentsDragLeaveEvent( QDragLeaveEvent * ); - void contentsDropEvent( QDropEvent * ); + void contentsDragEnterEvent( TQDragEnterEvent * ); + void contentsDragMoveEvent( TQDragMoveEvent * ); + void contentsDragLeaveEvent( TQDragLeaveEvent * ); + void contentsDropEvent( TQDropEvent * ); - void contentsMousePressEvent( QMouseEvent * ); - void contentsMouseMoveEvent( QMouseEvent * ); - void contentsMouseReleaseEvent( QMouseEvent * ); - void contentsMouseDoubleClickEvent( QMouseEvent * ); + void contentsMousePressEvent( TQMouseEvent * ); + void contentsMouseMoveEvent( TQMouseEvent * ); + void contentsMouseReleaseEvent( TQMouseEvent * ); + void contentsMouseDoubleClickEvent( TQMouseEvent * ); private: Calendar *mCalendar; KOrg::IncidenceChangerBase *mChanger; - QPoint mPressPos; + TQPoint mPressPos; bool mMousePressed; - QListViewItem *mOldCurrent; + TQListViewItem *mOldCurrent; KOTodoListViewToolTip *tooltip; }; @@ -113,7 +113,7 @@ class KOTodoView : public KOrg::BaseView { Q_OBJECT public: - KOTodoView( Calendar *cal, QWidget *parent = 0, const char *name = 0 ); + KOTodoView( Calendar *cal, TQWidget *parent = 0, const char *name = 0 ); ~KOTodoView(); void setCalendar( Calendar * ); @@ -128,12 +128,12 @@ class KOTodoView : public KOrg::BaseView CalPrinterBase::PrintType printType(); - void setDocumentId( const QString & ); + void setDocumentId( const TQString & ); - void saveLayout( KConfig *config, const QString &group ) const; - void restoreLayout( KConfig *config, const QString &group ); + void saveLayout( KConfig *config, const TQString &group ) const; + void restoreLayout( KConfig *config, const TQString &group ); /** Create a popup menu to set categories */ - QPopupMenu *getCategoryPopupMenu( KOTodoViewItem *todoItem ); + TQPopupMenu *getCategoryPopupMenu( KOTodoViewItem *todoItem ); void setIncidenceChanger( IncidenceChangerBase *changer ); public slots: @@ -142,16 +142,16 @@ class KOTodoView : public KOrg::BaseView void changeIncidenceDisplay( Incidence *, int ); - void showDates( const QDate &start, const QDate &end ); + void showDates( const TQDate &start, const TQDate &end ); void showIncidences( const Incidence::List &incidenceList ); void clearSelection(); - void editItem( QListViewItem *item, const QPoint &, int ); - void editItem( QListViewItem *item ); - void showItem( QListViewItem *item, const QPoint &, int ); - void showItem( QListViewItem *item ); - void popupMenu( QListViewItem *item, const QPoint &, int ); + void editItem( TQListViewItem *item, const TQPoint &, int ); + void editItem( TQListViewItem *item ); + void showItem( TQListViewItem *item, const TQPoint &, int ); + void showItem( TQListViewItem *item ); + void popupMenu( TQListViewItem *item, const TQPoint &, int ); void newTodo(); void newSubTodo(); void showTodo(); @@ -163,13 +163,13 @@ class KOTodoView : public KOrg::BaseView void setNewPriority( int ); void setNewPercentage( int ); - void setNewDate( QDate ); - void copyTodoToDate( QDate ); + void setNewDate( TQDate ); + void copyTodoToDate( TQDate ); void changedCategories( int ); void purgeCompleted(); - void itemStateChanged( QListViewItem * ); + void itemStateChanged( TQListViewItem * ); void setNewPercentageDelayed( KOTodoViewItem *item, int percentage ); void processDelayedNewPercentage(); @@ -190,38 +190,38 @@ class KOTodoView : public KOrg::BaseView * the TodoEditor approach is rather unscaling in the long * run. * Korganizer keeps it in memory and we need to update - * 1. make KOTodoViewItem a QObject again? + * 1. make KOTodoViewItem a TQObject again? * 2. add a public method for setting one todo modified? * 3. add a private method for setting a todo modified + friend here? * -- zecke 2002-07-08 */ friend class KOTodoViewItem; - QMap::ConstIterator insertTodoItem( Todo *todo ); + TQMap::ConstIterator insertTodoItem( Todo *todo ); bool scheduleRemoveTodoItem( KOTodoViewItem *todoItem ); - void restoreItemState( QListViewItem * ); + void restoreItemState( TQListViewItem * ); KOTodoListView *mTodoListView; - QPopupMenu *mItemPopupMenu; - QPopupMenu *mPopupMenu; - QPopupMenu *mPriorityPopupMenu; - QPopupMenu *mPercentageCompletedPopupMenu; - QPopupMenu *mCategoryPopupMenu; + TQPopupMenu *mItemPopupMenu; + TQPopupMenu *mPopupMenu; + TQPopupMenu *mPriorityPopupMenu; + TQPopupMenu *mPercentageCompletedPopupMenu; + TQPopupMenu *mCategoryPopupMenu; KDatePickerPopup *mMovePopupMenu; KDatePickerPopup *mCopyPopupMenu; - QMap mPercentage; - QMap mPriority; - QMap mCategory; + TQMap mPercentage; + TQMap mPriority; + TQMap mCategory; KOTodoViewItem *mActiveItem; - QMap mTodoMap; - QPtrList mItemsToDelete; - QValueList< QPair > mPercentChangedMap; + TQMap mTodoMap; + TQPtrList mItemsToDelete; + TQValueList< QPair > mPercentChangedMap; DocPrefs *mDocPrefs; - QString mCurrentDoc; + TQString mCurrentDoc; KPIM::ClickLineEdit *mQuickAdd; public: -- cgit v1.2.1