|
|
|
@ -117,7 +117,7 @@ void TNotesCollection::addNote(TQListViewItem* item, const TQString& s)
|
|
|
|
|
void TNotesCollection::removeNote(TQListViewItem* item)
|
|
|
|
|
{
|
|
|
|
|
TNote* note = find(item);
|
|
|
|
|
if (!note) qWarning("Internal error while removing note\n");
|
|
|
|
|
if (!note) tqWarning("Internal error while removing note\n");
|
|
|
|
|
else {
|
|
|
|
|
TQListViewItem* parent = item->parent();
|
|
|
|
|
for (TQListViewItemIterator it(item); it.current() &&
|
|
|
|
@ -133,7 +133,7 @@ bool TNotesCollection::changeNote(TQListViewItem* item, const TQString& s)
|
|
|
|
|
{
|
|
|
|
|
TNote* changed = find(item);
|
|
|
|
|
if (!changed) {
|
|
|
|
|
qWarning("Internal error while changing note\n");
|
|
|
|
|
tqWarning("Internal error while changing note\n");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (changed->change(s))
|
|
|
|
@ -153,7 +153,7 @@ const TQString& TNotesCollection::text(TQListViewItem* item)
|
|
|
|
|
{
|
|
|
|
|
TNote* note = find(item);
|
|
|
|
|
if (!note)
|
|
|
|
|
qFatal("Internal error while accessing note text\n");
|
|
|
|
|
tqFatal("Internal error while accessing note text\n");
|
|
|
|
|
return note->text;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|