From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- korganizer/history.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'korganizer/history.cpp') 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( mEntries ); - emit redoAvailable( QString::null ); + mRedoEntry = TQPtrList( 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( mEntries ); + mRedoEntry = TQPtrList( mEntries ); emit undoAvailable( entry->text() ); } } @@ -111,7 +111,7 @@ void History::recordAdd( Incidence *incidence ) truncate(); mEntries.append( entry ); mUndoEntry.toLast(); - mRedoEntry = QPtrList( mEntries ); + mRedoEntry = TQPtrList( mEntries ); emit undoAvailable( entry->text() ); } } @@ -125,12 +125,12 @@ void History::recordEdit( Incidence *oldIncidence, Incidence *newIncidence ) truncate(); mEntries.append( entry ); mUndoEntry.toLast(); - mRedoEntry = QPtrList( mEntries ); + mRedoEntry = TQPtrList( 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( mEntries ); + mRedoEntry = TQPtrList( 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 it( mEntries ); + TQPtrListIterator it( mEntries ); it.toLast(); Entry *entry; while ( (entry = it.current()) != 0 ) { @@ -279,7 +279,7 @@ void History::MultiEntry::undo() void History::MultiEntry::redo() { - QPtrListIterator it( mEntries ); + TQPtrListIterator 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; } -- cgit v1.2.1