summaryrefslogtreecommitdiffstats
path: root/karm/taskview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'karm/taskview.cpp')
-rw-r--r--karm/taskview.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/karm/taskview.cpp b/karm/taskview.cpp
index a410806a..1ac108e0 100644
--- a/karm/taskview.cpp
+++ b/karm/taskview.cpp
@@ -37,7 +37,7 @@
class DesktopTracker;
-TaskView::TaskView(TQWidget *parent, const char *name, const TQString &icsfile ):KListView(parent,name)
+TaskView::TaskView(TQWidget *tqparent, const char *name, const TQString &icsfile ):KListView(tqparent,name)
{
_preferences = Preferences::instance( icsfile );
_storage = KarmStorage::instance();
@@ -56,10 +56,10 @@ TaskView::TaskView(TQWidget *parent, const char *name, const TQString &icsfile )
addColumn( i18n("Time") );
addColumn( i18n("Total Session Time") );
addColumn( i18n("Total Time") );
- setColumnAlignment( 1, Qt::AlignRight );
- setColumnAlignment( 2, Qt::AlignRight );
- setColumnAlignment( 3, Qt::AlignRight );
- setColumnAlignment( 4, Qt::AlignRight );
+ setColumnAlignment( 1, TQt::AlignRight );
+ setColumnAlignment( 2, TQt::AlignRight );
+ setColumnAlignment( 3, TQt::AlignRight );
+ setColumnAlignment( 4, TQt::AlignRight );
adaptColumns();
setAllColumnsShowFocus( true );
@@ -255,7 +255,7 @@ void TaskView::refresh()
t->setPixmapProgress();
}
- // remove root decoration if there is no more children.
+ // remove root decoration if there is no more tqchildren.
bool anyChilds = false;
for(Task* child = first_child();
child;
@@ -278,7 +278,7 @@ void TaskView::loadFromFlatFile()
//KFileDialog::getSaveFileName("icalout.ics",i18n("*.ics|ICalendars"),this);
- TQString fileName(KFileDialog::getOpenFileName(TQString::null, TQString::null,
+ TQString fileName(KFileDialog::getOpenFileName(TQString(), TQString(),
0));
if (!fileName.isEmpty()) {
TQString err = _storage->loadFromFlatFile(this, fileName);
@@ -309,7 +309,7 @@ TQString TaskView::importPlanner(TQString fileName)
{
kdDebug(5970) << "entering importPlanner" << endl;
PlannerParser* handler=new PlannerParser(this);
- if (fileName.isEmpty()) fileName=KFileDialog::getOpenFileName(TQString::null, TQString::null, 0);
+ if (fileName.isEmpty()) fileName=KFileDialog::getOpenFileName(TQString(), TQString(), 0);
TQFile xmlFile( fileName );
TQXmlInputSource source( xmlFile );
TQXmlSimpleReader reader;
@@ -495,7 +495,7 @@ void TaskView::newTask()
newTask(i18n("New Task"), 0);
}
-void TaskView::newTask(TQString caption, Task *parent)
+void TaskView::newTask(TQString caption, Task *tqparent)
{
EditTaskDialog *dialog = new EditTaskDialog(caption, false);
long total, totalDiff, session, sessionDiff;
@@ -514,7 +514,7 @@ void TaskView::newTask(TQString caption, Task *parent)
if ( desktopList.size() == ( unsigned int ) _desktopTracker->desktopCount() )
desktopList.clear();
- TQString uid = addTask( taskName, total, session, desktopList, parent );
+ TQString uid = addTask( taskName, total, session, desktopList, tqparent );
if ( uid.isNull() )
{
KMessageBox::error( 0, i18n(
@@ -527,15 +527,15 @@ void TaskView::newTask(TQString caption, Task *parent)
TQString TaskView::addTask
( const TQString& taskname, long total, long session,
- const DesktopList& desktops, Task* parent )
+ const DesktopList& desktops, Task* tqparent )
{
Task *task;
kdDebug(5970) << "TaskView::addTask: taskname = " << taskname << endl;
- if ( parent ) task = new Task( taskname, total, session, desktops, parent );
+ if ( tqparent ) task = new Task( taskname, total, session, desktops, tqparent );
else task = new Task( taskname, total, session, desktops, this );
- task->setUid( _storage->addTask( task, parent ) );
+ task->setUid( _storage->addTask( task, tqparent ) );
TQString taskuid=task->uid();
if ( ! taskuid.isNull() )
{
@@ -688,7 +688,7 @@ void TaskView::deleteTask(bool markingascomplete)
save();
}
- // remove root decoration if there is no more children.
+ // remove root decoration if there is no more tqchildren.
refresh();
// Stop idle detection if no more counters are running