summaryrefslogtreecommitdiffstats
path: root/src/notes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/notes.cpp')
-rw-r--r--src/notes.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/notes.cpp b/src/notes.cpp
index 2cbb170..6bf96ab 100644
--- a/src/notes.cpp
+++ b/src/notes.cpp
@@ -101,16 +101,16 @@ TNotesCollection::~TNotesCollection()
void TNotesCollection::addNote(TQListViewItem* item)
{
insert(item, new TNote(item, this));
- TQListViewItem* tqparent = item->tqparent();
- if (tqparent) find(tqparent)->updateView();
+ TQListViewItem* parent = item->parent();
+ if (parent) find(parent)->updateView();
modified = true;
}
void TNotesCollection::addNote(TQListViewItem* item, const TQString& s)
{
insert(item, new TNote(item, this, s));
- TQListViewItem* tqparent = item->tqparent();
- if (tqparent) find(tqparent)->updateView();
+ TQListViewItem* parent = item->parent();
+ if (parent) find(parent)->updateView();
modified = true;
}
@@ -119,12 +119,12 @@ void TNotesCollection::removeNote(TQListViewItem* item)
TNote* note = find(item);
if (!note) qWarning("Internal error while removing note\n");
else {
- TQListViewItem* tqparent = item->tqparent();
+ TQListViewItem* parent = item->parent();
for (TQListViewItemIterator it(item); it.current() &&
(it.current() == item || it.current()->depth() > item->depth()); ++it)
find(it.current())->destroy();
delete item;
- if (tqparent) find(tqparent)->updateView();
+ if (parent) find(parent)->updateView();
modified = true;
}
}