summaryrefslogtreecommitdiffstats
path: root/karm/taskview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-14 20:16:30 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-14 20:16:30 +0000
commit1c93fca14d9ce37499bcfdf994c660186a0b6f17 (patch)
treef2defe163a805a9e34a2142dfde4cdb5e49241e7 /karm/taskview.cpp
parent67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (diff)
downloadtdepim-1c93fca14d9ce37499bcfdf994c660186a0b6f17.tar.gz
tdepim-1c93fca14d9ce37499bcfdf994c660186a0b6f17.zip
Enable kdepim compilation under Qt4
This will likely break Qt3 compilation temporarily, which is an unintended side effect. A third and final kdepim commit will repair Qt3 compilation shortly. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227946 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 1ac108e01..6a8f6e051 100644
--- a/karm/taskview.cpp
+++ b/karm/taskview.cpp
@@ -131,7 +131,7 @@ void TaskView::contentsMousePressEvent ( TQMouseEvent * e )
int leftborder = treeStepSize() * ( task->depth() + ( rootIsDecorated() ? 1 : 0)) + itemMargin();
if ((leftborder < e->x()) && (e->x() < 19 + leftborder ))
{
- if ( e->button() == LeftButton )
+ if ( e->button() == Qt::LeftButton )
if ( task->isComplete() ) task->setPercentComplete( 0, _storage );
else task->setPercentComplete( 100, _storage );
}
@@ -154,7 +154,7 @@ void TaskView::contentsMouseDoubleClickEvent ( TQMouseEvent * e )
if ( e->pos().y() >= task->itemPos() && // doubleclick was onto current_item()
e->pos().y() < task->itemPos()+task->height() )
{
- if ( activeTasks.findRef(task) == -1 ) // task is active
+ if ( activeTasks.tqfindRef(task) == -1 ) // task is active
{
stopAllTimers();
startCurrentTimer();
@@ -388,7 +388,7 @@ void TaskView::startTimerFor(Task* task, TQDateTime startTime )
kdDebug(5970) << "Entering TaskView::startTimerFor" << endl;
if (save()==TQString())
{
- if (task != 0 && activeTasks.findRef(task) == -1)
+ if (task != 0 && activeTasks.tqfindRef(task) == -1)
{
_idleTimeDetector->startIdleDetection();
if (!task->isComplete())
@@ -462,7 +462,7 @@ void TaskView::resetTimeForAllTasks()
void TaskView::stopTimerFor(Task* task)
{
kdDebug(5970) << "Entering stopTimerFor. task = " << task->name() << endl;
- if ( task != 0 && activeTasks.findRef(task) != -1 ) {
+ if ( task != 0 && activeTasks.tqfindRef(task) != -1 ) {
activeTasks.removeRef(task);
task->setRunning(false, _storage);
if ( activeTasks.count() == 0 ) {
@@ -613,7 +613,7 @@ void TaskView::editTask()
// bool ok;
// TQString comment = KLineEditDlg::getText(i18n("Comment"),
-// i18n("Log comment for task '%1':").arg(task->name()),
+// i18n("Log comment for task '%1':").tqarg(task->name()),
// TQString(), &ok, this);
// if ( ok )
// task->addComment( comment, _storage );
@@ -651,7 +651,7 @@ void TaskView::deleteTask(bool markingascomplete)
response = KMessageBox::warningContinueCancel( 0,
i18n( "Are you sure you want to delete "
"the task named\n\"%1\" and its entire history?")
- .arg(task->name()),
+ .tqarg(task->name()),
i18n( "Deleting Task"), KStdGuiItem::del());
}
else {
@@ -659,7 +659,7 @@ void TaskView::deleteTask(bool markingascomplete)
i18n( "Are you sure you want to delete the task named"
"\n\"%1\" and its entire history?\n"
"NOTE: all its subtasks and their history will also "
- "be deleted.").arg(task->name()),
+ "be deleted.").tqarg(task->name()),
i18n( "Deleting Task"), KStdGuiItem::del());
}
}
@@ -820,16 +820,16 @@ void TaskView::clipTotals()
i18n("Copy This Task"), i18n("Copy All Tasks") );
if (response == KMessageBox::Yes) // This task only
{
- KApplication::clipboard()->setText(t.totalsAsText(this, true, TimeKard::TotalTime));
+ KApplication::tqclipboard()->setText(t.totalsAsText(this, true, TimeKard::TotalTime));
}
else // All tasks
{
- KApplication::clipboard()->setText(t.totalsAsText(this, false, TimeKard::TotalTime));
+ KApplication::tqclipboard()->setText(t.totalsAsText(this, false, TimeKard::TotalTime));
}
}
else
{
- KApplication::clipboard()->setText(t.totalsAsText(this, true, TimeKard::TotalTime));
+ KApplication::tqclipboard()->setText(t.totalsAsText(this, true, TimeKard::TotalTime));
}
}
@@ -844,16 +844,16 @@ void TaskView::clipSession()
i18n("Copy This Task"), i18n("Copy All Tasks") );
if (response == KMessageBox::Yes) // this task only
{
- KApplication::clipboard()->setText(t.totalsAsText(this, true, TimeKard::SessionTime));
+ KApplication::tqclipboard()->setText(t.totalsAsText(this, true, TimeKard::SessionTime));
}
else // only task
{
- KApplication::clipboard()->setText(t.totalsAsText(this, false, TimeKard::SessionTime));
+ KApplication::tqclipboard()->setText(t.totalsAsText(this, false, TimeKard::SessionTime));
}
}
else
{
- KApplication::clipboard()->setText(t.totalsAsText(this, true, TimeKard::SessionTime));
+ KApplication::tqclipboard()->setText(t.totalsAsText(this, true, TimeKard::SessionTime));
}
}
@@ -863,7 +863,7 @@ void TaskView::clipHistory()
if (dialog.exec()== TQDialog::Accepted)
{
TimeKard t;
- KApplication::clipboard()->
+ KApplication::tqclipboard()->
setText( t.historyAsText(this, dialog.from(), dialog.to(), !dialog.allTasks(), dialog.perWeek(), dialog.totalsOnly() ) );
}
}