summaryrefslogtreecommitdiffstats
path: root/karm/taskview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /karm/taskview.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 a410806a0..1ac108e01 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