From 11191ef0b9908604d1d7aaca382b011ef22c454c Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 18 Dec 2011 18:12:30 -0600 Subject: Rename old tq methods that no longer need a unique name --- kspread/kspread_sheet.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'kspread/kspread_sheet.cc') diff --git a/kspread/kspread_sheet.cc b/kspread/kspread_sheet.cc index 09abcf8a..0e7f7bcc 100644 --- a/kspread/kspread_sheet.cc +++ b/kspread/kspread_sheet.cc @@ -222,12 +222,12 @@ TextDrag::~TextDrag() } -TQByteArray TextDrag::tqencodedData( const char * mime ) const +TQByteArray TextDrag::encodedData( const char * mime ) const { if ( strcmp( selectionMimeType(), mime ) == 0) return m_kspread; else - return TQTextDrag::tqencodedData( mime ); + return TQTextDrag::encodedData( mime ); } bool TextDrag::canDecode( TQMimeSource* e ) @@ -5125,11 +5125,11 @@ void Sheet::paste( const TQRect& pasteArea, bool makeUndo, if ( mime->provides( TextDrag::selectionMimeType() ) ) { - b = mime->tqencodedData( TextDrag::selectionMimeType() ); + b = mime->encodedData( TextDrag::selectionMimeType() ); } else if( mime->provides( "text/plain" ) ) { - // Note: TQClipboard::text() seems to do a better job than tqencodedData( "text/plain" ) + // Note: TQClipboard::text() seems to do a better job than encodedData( "text/plain" ) // In particular it handles charsets (in the mimetype). Copied from KPresenter ;-) TQString _text = TQApplication::tqclipboard()->text( clipboardMode ); doc()->emitBeginOperation(); @@ -5152,7 +5152,7 @@ void Sheet::paste( const TQRect& pasteArea, bool makeUndo, void Sheet::pasteTextPlain( TQString &_text, TQRect pasteArea) { // TQString tmp; -// tmp= TQString::fromLocal8Bit(_mime->tqencodedData( "text/plain" )); +// tmp= TQString::fromLocal8Bit(_mime->encodedData( "text/plain" )); if( _text.isEmpty() ) return; @@ -5530,7 +5530,7 @@ bool Sheet::testAreaPasteInsert()const TQByteArray b; if ( mime->provides( "application/x-kspread-snippet" ) ) - b = mime->tqencodedData( "application/x-kspread-snippet" ); + b = mime->encodedData( "application/x-kspread-snippet" ); else return false; @@ -7171,7 +7171,7 @@ void Sheet::convertPart( const TQString & part, KoXmlWriter & xmlWriter ) const TQDomElement t = dd.createElement( "text:date" ); t.setAttribute( "text:date-value", "0-00-00" ); // todo: "style:data-style-name", "N2" - t.appendChild( dd.createTextNode( TQDate::tqcurrentDate().toString() ) ); + t.appendChild( dd.createTextNode( TQDate::currentDate().toString() ) ); parent.appendChild( t ); #endif } -- cgit v1.2.1