summaryrefslogtreecommitdiffstats
path: root/kjots/KJotsMain.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit625904bd3097f9749450428904ca14ff2531824d (patch)
treea45c43d5de71cb720078fa1272a4339815a919be /kjots/KJotsMain.cpp
parent6335dc55802871b5a43492f217b6edbb420204c4 (diff)
downloadtdeutils-625904bd3097f9749450428904ca14ff2531824d.tar.gz
tdeutils-625904bd3097f9749450428904ca14ff2531824d.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kjots/KJotsMain.cpp')
-rw-r--r--kjots/KJotsMain.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kjots/KJotsMain.cpp b/kjots/KJotsMain.cpp
index 28335ff..2feb47a 100644
--- a/kjots/KJotsMain.cpp
+++ b/kjots/KJotsMain.cpp
@@ -769,7 +769,7 @@ TQString KJotsMain::currentBookmarkTitle()
while ( item )
{
KJotsEntryBase *entry = dynamic_cast<KJotsEntryBase*>(item);
- item = item->tqparent();
+ item = item->parent();
if ( item )
{
@@ -865,7 +865,7 @@ void KJotsMain::jumpToBookmark(const TQString& bookmark)
{
if ( ++pageCount == pageNo )
{
- static_cast<TQListViewItem*>(entry)->tqparent()->setOpen(true);
+ static_cast<TQListViewItem*>(entry)->parent()->setOpen(true);
subjectList->ensureItemVisible(entry);
subjectList->setSelected(entry, true);
jumpToEntry(entry);
@@ -914,12 +914,12 @@ void KJotsMain::nextBook()
*/
void KJotsMain::prevBook()
{
- //Don't get caught by tqparent book.
+ //Don't get caught by parent book.
TQListViewItem *startingPoint = subjectList->currentItem();
if ( !startingPoint ) return; //sanity check
if ( dynamic_cast<KJotsPage*>(startingPoint) )
- startingPoint = startingPoint->tqparent();
+ startingPoint = startingPoint->parent();
TQListViewItemIterator it ( startingPoint );
do {
@@ -1043,7 +1043,7 @@ void KJotsMain::updateCaption()
while ( item )
{
KJotsEntryBase *entry = dynamic_cast<KJotsEntryBase*>(item);
- item = item->tqparent();
+ item = item->parent();
if ( item )
{
@@ -1081,7 +1081,7 @@ void KJotsMain::slotItemMoved(TQListViewItem *item, TQListViewItem* afterFirst,
//afterFirst doesn't work like we need it to. We want it to point to the
//previous sibling, not just the entry directly above it.
- if ( afterFirst && afterFirst->tqparent() != entry->parentBook() )
+ if ( afterFirst && afterFirst->parent() != entry->parentBook() )
{
TQListViewItemIterator it ( afterFirst );
afterFirst = 0;
@@ -1096,7 +1096,7 @@ void KJotsMain::slotItemMoved(TQListViewItem *item, TQListViewItem* afterFirst,
}
//Found a previous sibling!
- if ( it.current()->tqparent() == entry->parentBook() )
+ if ( it.current()->parent() == entry->parentBook() )
{
afterFirst = it.current();
break;
@@ -1108,7 +1108,7 @@ void KJotsMain::slotItemMoved(TQListViewItem *item, TQListViewItem* afterFirst,
KJotsEntryBase *entryAfter = dynamic_cast<KJotsEntryBase*>(afterFirst);
- if ( entry->isPage() && !item->tqparent() )
+ if ( entry->isPage() && !item->parent() )
{
invalidMoveFlag=true; //Don't do anything while we're stuck here.
subjectList->setItemsMovable(false);
@@ -1149,7 +1149,7 @@ void KJotsMain::slotItemMoved(TQListViewItem *item, TQListViewItem* afterFirst,
if ( entryAfter )
{
- //Set the old tqparent book to dirty, since it just lost a page.
+ //Set the old parent book to dirty, since it just lost a page.
if ( entryAfter->isBook() )
entryAfter->setDirty(true);
else
@@ -1173,7 +1173,7 @@ KJotsBook* KJotsMain::currentBook()
{
return dynamic_cast<KJotsBook*>(e);
}
- e = dynamic_cast<KJotsEntryBase*>(e->KListViewItem::tqparent());
+ e = dynamic_cast<KJotsEntryBase*>(e->KListViewItem::parent());
}
return 0;