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 --- karm/taskview.h | 52 ++++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'karm/taskview.h') diff --git a/karm/taskview.h b/karm/taskview.h index f1cf7807..7b60f7e8 100644 --- a/karm/taskview.h +++ b/karm/taskview.h @@ -1,9 +1,9 @@ #ifndef KARM_TASK_VIEW_H #define KARM_TASK_VIEW_H -#include -#include -#include +#include +#include +#include #include @@ -12,7 +12,7 @@ #include "karmstorage.h" #include "mainwindow.h" #include "reportcriteria.h" -#include +#include //#include "desktoptracker.h" //#include "karmutility.h" @@ -44,7 +44,7 @@ class TaskView : public KListView Q_OBJECT public: - TaskView( QWidget *parent = 0, const char *name = 0, const QString &icsfile = "" ); + TaskView( TQWidget *parent = 0, const char *name = 0, const TQString &icsfile = "" ); virtual ~TaskView(); /** Return the first item in the view, cast to a Task pointer. */ @@ -57,7 +57,7 @@ class TaskView : public KListView Task* item_at_index(int i); /** Load the view from storage. */ - void load( QString filename="" ); + void load( TQString filename="" ); /** Close the storage and release lock. */ void closeStorage(); @@ -72,7 +72,7 @@ class TaskView : public KListView long count(); /** Return list of start/stop events for given date range. */ - QValueList getHistory(const QDate& from, const QDate& to) const; + TQValueList getHistory(const TQDate& from, const TQDate& to) const; /** Schedule that we should save very soon */ void scheduleSave(); @@ -81,12 +81,12 @@ class TaskView : public KListView Preferences *preferences(); /** Add a task to view and storage. */ - QString addTask( const QString& taskame, long total, long session, const DesktopList& desktops, + TQString addTask( const TQString& taskame, long total, long session, const DesktopList& desktops, Task* parent = 0 ); public slots: /** Save to persistent storage. */ - QString save(); + TQString save(); /** Start the timer on the current item (task) in view. */ void startCurrentTimer(); @@ -98,13 +98,13 @@ class TaskView : public KListView void stopAllTimers(); /** Stop all running timers as if it was qdt */ - void stopAllTimersAt(QDateTime qdt); + void stopAllTimersAt(TQDateTime qdt); /** Calls newTask dialog with caption "New Task". */ void newTask(); /** Display edit task dialog and create a new task with results. */ - void newTask( QString caption, Task* parent ); + void newTask( TQString caption, Task* parent ); /** Used to refresh (e.g. after import) */ void refresh(); @@ -113,16 +113,16 @@ class TaskView : public KListView void loadFromFlatFile(); /** used to import tasks from imendio planner */ - QString importPlanner( QString fileName="" ); + TQString importPlanner( TQString fileName="" ); /** call export function for csv totals or history */ - QString report( const ReportCriteria &rc ); + TQString report( const ReportCriteria &rc ); /** Export comma separated values format for task time totals. */ void exportcsvFile(); /** Export comma-separated values format for task history. */ - QString exportcsvHistory(); + TQString exportcsvHistory(); /** Calls newTask dialog with caption "New Sub Task". */ void newSubTask(); @@ -172,7 +172,7 @@ class TaskView : public KListView * @param task task to start timer of * @param startTime if taskview has been modified by another program, we have to set the starting time to not-now. */ - void startTimerFor( Task* task, QDateTime startTime = QDateTime::currentDateTime() ); + void startTimerFor( Task* task, TQDateTime startTime = TQDateTime::currentDateTime() ); void stopTimerFor( Task* task ); /** clears all active tasks. Needed e.g. if iCal file was modified by @@ -183,7 +183,7 @@ class TaskView : public KListView /** User might have picked a new iCalendar file on preferences screen. Verify the file is not the same as before and load the new one. This is not iCalFileModified. */ - void iCalFileChanged(QString file); + void iCalFileChanged(TQString file); /** Copy totals for current and all sub tasks to clipboard. */ void clipTotals(); @@ -199,16 +199,16 @@ class TaskView : public KListView void updateButtons(); void timersActive(); void timersInactive(); - void tasksChanged( QPtrList activeTasks ); - void setStatusBar( QString ); + void tasksChanged( TQPtrList activeTasks ); + void setStatusBar( TQString ); private: // member variables IdleTimeDetector *_idleTimeDetector; - QTimer *_minuteTimer; - QTimer *_autoSaveTimer; - QTimer *_manualSaveTimer; + TQTimer *_minuteTimer; + TQTimer *_autoSaveTimer; + TQTimer *_manualSaveTimer; Preferences *_preferences; - QPtrList activeTasks; + TQPtrList activeTasks; int previousColumnWidths[4]; DesktopTracker* _desktopTracker; bool _isloading; @@ -217,20 +217,20 @@ class TaskView : public KListView KarmStorage * _storage; private: - void contentsMousePressEvent ( QMouseEvent * e ); - void contentsMouseDoubleClickEvent ( QMouseEvent * e ); + void contentsMousePressEvent ( TQMouseEvent * e ); + void contentsMouseDoubleClickEvent ( TQMouseEvent * e ); void updateParents( Task* task, long totalDiff, long sesssionDiff); void deleteChildTasks( Task *item ); void addTimeToActiveTasks( int minutes, bool save_data = true ); /** item state stores if a task is expanded so you can see the subtasks */ - void restoreItemState( QListViewItem *item ); + void restoreItemState( TQListViewItem *item ); protected slots: void autoSaveChanged( bool ); void autoSavePeriodChanged( int period ); void minuteUpdate(); /** item state stores if a task is expanded so you can see the subtasks */ - void itemStateChanged( QListViewItem *item ); + void itemStateChanged( TQListViewItem *item ); /** React on another process having modified the iCal file we rely on. */ void iCalFileModified(ResourceCalendar *); }; -- cgit v1.2.3