summaryrefslogtreecommitdiffstats
path: root/korganizer/kotodoview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
commitf4fae92b6768541e2952173c3d4b09040f95bf7e (patch)
treed8c5d93232235cd635f3310b4d95490df181ba2d /korganizer/kotodoview.cpp
parent125c0a08265b75a133644d3b55f47e37c919f45d (diff)
downloadtdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.tar.gz
tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.zip
Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korganizer/kotodoview.cpp')
-rw-r--r--korganizer/kotodoview.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp
index 5951d8bc4..333e2fbf5 100644
--- a/korganizer/kotodoview.cpp
+++ b/korganizer/kotodoview.cpp
@@ -84,7 +84,7 @@ void KOTodoListViewToolTip::maybeTip( const TQPoint & pos)
{
/* Calculate the rectangle. */
- r=todolist->itemRect(i);
+ r=todolist->tqitemRect(i);
headerPos = todolist->header()->sectionPos(col)-todolist->contentsX();
r.setLeft( (headerPos < 0 ? 0 : headerPos) );
r.setRight(headerPos + todolist->header()->sectionSize(col));
@@ -563,7 +563,7 @@ void KOTodoView::updateView()
mTodoMap.clear();
Todo::List::ConstIterator it;
for( it = todoList.begin(); it != todoList.end(); ++it ) {
- if ( !mTodoMap.contains( *it ) ) {
+ if ( !mTodoMap.tqcontains( *it ) ) {
insertTodoItem( *it );
}
}
@@ -635,7 +635,7 @@ void KOTodoView::removeTodoItems()
KOTodoViewItem *item;
for ( item = mItemsToDelete.first(); item; item = mItemsToDelete.next() ) {
Todo *todo = item->todo();
- if ( todo && mTodoMap.contains( todo ) ) {
+ if ( todo && mTodoMap.tqcontains( todo ) ) {
mTodoMap.remove( todo );
}
delete item;
@@ -656,7 +656,7 @@ bool KOTodoView::scheduleRemoveTodoItem( KOTodoViewItem *todoItem )
void KOTodoView::updateConfig()
{
- mTodoListView->repaintContents();
+ mTodoListView->tqrepaintContents();
}
Incidence::List KOTodoView::selectedIncidences()
@@ -691,7 +691,7 @@ void KOTodoView::changeIncidenceDisplay(Incidence *incidence, int action)
Todo *todo = static_cast<Todo *>(incidence);
if ( todo ) {
KOTodoViewItem *todoItem = 0;
- if ( mTodoMap.contains( todo ) ) {
+ if ( mTodoMap.tqcontains( todo ) ) {
todoItem = mTodoMap[todo];
}
switch ( action ) {
@@ -705,7 +705,7 @@ void KOTodoView::changeIncidenceDisplay(Incidence *incidence, int action)
// correctly update changes in relations
Todo*parent = dynamic_cast<Todo*>( todo->relatedTo() );
KOTodoViewItem*parentItem = 0;
- if ( parent && mTodoMap.contains(parent) ) {
+ if ( parent && mTodoMap.tqcontains(parent) ) {
parentItem = mTodoMap[ parent ];
}
if ( todoItem->parent() != parentItem ) {
@@ -797,7 +797,7 @@ void KOTodoView::popupMenu( TQListViewItem *item, const TQPoint &, int column )
if ( mActiveItem->todo()->hasDueDate () ) {
mMovePopupMenu->datePicker()->setDate( date );
} else {
- mMovePopupMenu->datePicker()->setDate( TQDate::currentDate() );
+ mMovePopupMenu->datePicker()->setDate( TQDate::tqcurrentDate() );
}
switch ( column ) {
case ePriorityColumn:
@@ -815,7 +815,7 @@ void KOTodoView::popupMenu( TQListViewItem *item, const TQPoint &, int column )
break;
default:
mCopyPopupMenu->datePicker()->setDate( date );
- mCopyPopupMenu->datePicker()->setDate( TQDate::currentDate() );
+ mCopyPopupMenu->datePicker()->setDate( TQDate::tqcurrentDate() );
mItemPopupMenu->setItemEnabled( ePopupUnSubTodo,
mActiveItem->todo()->relatedTo() );
mItemPopupMenu->setItemEnabled( ePopupUnAllSubTodo,
@@ -832,7 +832,7 @@ void KOTodoView::newTodo()
{
kdDebug() << k_funcinfo << endl;
emit newTodoSignal( 0/*ResourceCalendar*/, TQString()/*subResource*/,
- TQDate::currentDate().addDays(7) );
+ TQDate::tqcurrentDate().addDays(7) );
}
void KOTodoView::newSubTodo()
@@ -917,7 +917,7 @@ void KOTodoView::setNewPercentage( KOTodoViewItem *item, int percentage )
myChild = myChild->nextSibling();
}*/
if ( percentage == 100 ) {
- todo->setCompleted( TQDateTime::currentDateTime() );
+ todo->setCompleted( TQDateTime::tqcurrentDateTime() );
// If the todo does recur, it doesn't get set as completed. However, the
// item is still checked. Uncheck it again.
if ( !todo->isCompleted() ) {