diff options
Diffstat (limited to 'korganizer/history.cpp')
-rw-r--r-- | korganizer/history.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/korganizer/history.cpp b/korganizer/history.cpp index 5afc325e7..6207ebec9 100644 --- a/korganizer/history.cpp +++ b/korganizer/history.cpp @@ -57,7 +57,7 @@ void History::undo() entry = mUndoEntry.current(); if ( entry ) emit undoAvailable( entry->text() ); - else emit undoAvailable( QString::null ); + else emit undoAvailable( TQString::null ); } void History::redo() @@ -76,7 +76,7 @@ void History::redo() entry = mRedoEntry.current(); if ( entry ) emit redoAvailable( entry->text() ); - else emit redoAvailable( QString::null ); + else emit redoAvailable( TQString::null ); } void History::truncate() @@ -84,8 +84,8 @@ void History::truncate() while ( mUndoEntry.current() != mEntries.last() ) { mEntries.removeLast(); } - mRedoEntry = QPtrList<Entry>( mEntries ); - emit redoAvailable( QString::null ); + mRedoEntry = TQPtrList<Entry>( mEntries ); + emit redoAvailable( TQString::null ); } void History::recordDelete( Incidence *incidence ) @@ -97,7 +97,7 @@ void History::recordDelete( Incidence *incidence ) truncate(); mEntries.append( entry ); mUndoEntry.toLast(); - mRedoEntry = QPtrList<Entry>( mEntries ); + mRedoEntry = TQPtrList<Entry>( mEntries ); emit undoAvailable( entry->text() ); } } @@ -111,7 +111,7 @@ void History::recordAdd( Incidence *incidence ) truncate(); mEntries.append( entry ); mUndoEntry.toLast(); - mRedoEntry = QPtrList<Entry>( mEntries ); + mRedoEntry = TQPtrList<Entry>( mEntries ); emit undoAvailable( entry->text() ); } } @@ -125,12 +125,12 @@ void History::recordEdit( Incidence *oldIncidence, Incidence *newIncidence ) truncate(); mEntries.append( entry ); mUndoEntry.toLast(); - mRedoEntry = QPtrList<Entry>( mEntries ); + mRedoEntry = TQPtrList<Entry>( mEntries ); emit undoAvailable( entry->text() ); } } -void History::startMultiModify( const QString &description ) +void History::startMultiModify( const TQString &description ) { if ( mCurrentMultiEntry ) { endMultiModify(); @@ -139,7 +139,7 @@ void History::startMultiModify( const QString &description ) truncate(); mEntries.append( mCurrentMultiEntry ); mUndoEntry.toLast(); - mRedoEntry = QPtrList<Entry>( mEntries ); + mRedoEntry = TQPtrList<Entry>( mEntries ); emit undoAvailable( mCurrentMultiEntry->text() ); } @@ -180,7 +180,7 @@ void History::EntryDelete::redo() mCalendar->deleteIncidence( incidence ); } -QString History::EntryDelete::text() +TQString History::EntryDelete::text() { return i18n("Delete %1").arg(mIncidence->type()); } @@ -209,7 +209,7 @@ void History::EntryAdd::redo() mCalendar->addIncidence( mIncidence->clone() ); } -QString History::EntryAdd::text() +TQString History::EntryAdd::text() { return i18n("Add %1").arg(mIncidence->type()); } @@ -246,12 +246,12 @@ void History::EntryEdit::redo() mCalendar->addIncidence( mNewIncidence->clone() ); } -QString History::EntryEdit::text() +TQString History::EntryEdit::text() { return i18n("Edit %1").arg(mNewIncidence->type()); } -History::MultiEntry::MultiEntry( Calendar *calendar, const QString &text ) +History::MultiEntry::MultiEntry( Calendar *calendar, const TQString &text ) : Entry( calendar ), mText( text ) { mEntries.setAutoDelete( true ); @@ -268,7 +268,7 @@ void History::MultiEntry::appendEntry( Entry* entry ) void History::MultiEntry::undo() { - QPtrListIterator<Entry> it( mEntries ); + TQPtrListIterator<Entry> it( mEntries ); it.toLast(); Entry *entry; while ( (entry = it.current()) != 0 ) { @@ -279,7 +279,7 @@ void History::MultiEntry::undo() void History::MultiEntry::redo() { - QPtrListIterator<Entry> it( mEntries ); + TQPtrListIterator<Entry> it( mEntries ); Entry *entry; while ( (entry = it.current()) != 0 ) { ++it; @@ -287,7 +287,7 @@ void History::MultiEntry::redo() } } -QString History::MultiEntry::text() +TQString History::MultiEntry::text() { return mText; } |