From 83677e35509b4dafac63b76995652bdf3b49f209 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 16 Dec 2011 09:59:34 -0600 Subject: Revert "Rename a number of old tq methods that are no longer tq specific" This reverts commit 808e453c56036211f57482ed847d54aca01bba68. --- kopete/libkopete/kopetecontactlistelement.cpp | 66 +++++++++++++-------------- 1 file changed, 33 insertions(+), 33 deletions(-) (limited to 'kopete/libkopete/kopetecontactlistelement.cpp') diff --git a/kopete/libkopete/kopetecontactlistelement.cpp b/kopete/libkopete/kopetecontactlistelement.cpp index 89e9ea29..a9e812cd 100644 --- a/kopete/libkopete/kopetecontactlistelement.cpp +++ b/kopete/libkopete/kopetecontactlistelement.cpp @@ -90,21 +90,21 @@ const TQValueList ContactListElement::toXML() { TQDomDocument pluginData; TQValueList pluginNodes; - pluginData.appendChild( pluginData.createElement( TQString::fromLatin1( "plugin-data" ) ) ); + pluginData.appendChild( pluginData.createElement( TQString::tqfromLatin1( "plugin-data" ) ) ); if ( !d->pluginData.isEmpty() ) { TQMap >::ConstIterator pluginIt; for ( pluginIt = d->pluginData.begin(); pluginIt != d->pluginData.end(); ++pluginIt ) { - TQDomElement pluginElement = pluginData.createElement( TQString::fromLatin1( "plugin-data" ) ); - pluginElement.setAttribute( TQString::fromLatin1( "plugin-id" ), pluginIt.key() ); + TQDomElement pluginElement = pluginData.createElement( TQString::tqfromLatin1( "plugin-data" ) ); + pluginElement.setAttribute( TQString::tqfromLatin1( "plugin-id" ), pluginIt.key() ); TQMap::ConstIterator it; for ( it = pluginIt.data().begin(); it != pluginIt.data().end(); ++it ) { - TQDomElement pluginDataField = pluginData.createElement( TQString::fromLatin1( "plugin-data-field" ) ); - pluginDataField.setAttribute( TQString::fromLatin1( "key" ), it.key() ); + TQDomElement pluginDataField = pluginData.createElement( TQString::tqfromLatin1( "plugin-data-field" ) ); + pluginDataField.setAttribute( TQString::tqfromLatin1( "key" ), it.key() ); pluginDataField.appendChild( pluginData.createTextNode( it.data() ) ); pluginElement.appendChild( pluginDataField ); } @@ -115,39 +115,39 @@ const TQValueList ContactListElement::toXML() } if ( !d->icons.isEmpty() ) { - TQDomElement iconsElement = pluginData.createElement( TQString::fromLatin1( "custom-icons" ) ); - iconsElement.setAttribute( TQString::fromLatin1( "use" ), d->useCustomIcon ? TQString::fromLatin1( "1" ) : TQString::fromLatin1( "0" ) ); + TQDomElement iconsElement = pluginData.createElement( TQString::tqfromLatin1( "custom-icons" ) ); + iconsElement.setAttribute( TQString::tqfromLatin1( "use" ), d->useCustomIcon ? TQString::tqfromLatin1( "1" ) : TQString::tqfromLatin1( "0" ) ); for ( TQMap::ConstIterator it = d->icons.begin(); it != d->icons.end(); ++it ) { - TQDomElement iconElement = pluginData.createElement( TQString::fromLatin1( "icon" ) ); + TQDomElement iconElement = pluginData.createElement( TQString::tqfromLatin1( "icon" ) ); TQString stateStr; switch ( it.key() ) { case Open: - stateStr = TQString::fromLatin1( "open" ); + stateStr = TQString::tqfromLatin1( "open" ); break; case Closed: - stateStr = TQString::fromLatin1( "closed" ); + stateStr = TQString::tqfromLatin1( "closed" ); break; case Online: - stateStr = TQString::fromLatin1( "online" ); + stateStr = TQString::tqfromLatin1( "online" ); break; case Away: - stateStr = TQString::fromLatin1( "away" ); + stateStr = TQString::tqfromLatin1( "away" ); break; case Offline: - stateStr = TQString::fromLatin1( "offline" ); + stateStr = TQString::tqfromLatin1( "offline" ); break; case Unknown: - stateStr = TQString::fromLatin1( "unknown" ); + stateStr = TQString::tqfromLatin1( "unknown" ); break; case None: default: - stateStr = TQString::fromLatin1( "none" ); + stateStr = TQString::tqfromLatin1( "none" ); break; } - iconElement.setAttribute( TQString::fromLatin1( "state" ), stateStr ); + iconElement.setAttribute( TQString::tqfromLatin1( "state" ), stateStr ); iconElement.appendChild( pluginData.createTextNode( it.data() ) ); iconsElement.appendChild( iconElement ); } @@ -159,52 +159,52 @@ const TQValueList ContactListElement::toXML() bool ContactListElement::fromXML( const TQDomElement& element ) { - if ( element.tagName() == TQString::fromLatin1( "plugin-data" ) ) + if ( element.tagName() == TQString::tqfromLatin1( "plugin-data" ) ) { TQMap pluginData; - TQString pluginId = element.attribute( TQString::fromLatin1( "plugin-id" ), TQString() ); + TQString pluginId = element.attribute( TQString::tqfromLatin1( "plugin-id" ), TQString() ); //in kopete 0.6 the AIM protocol was called OSCAR - if ( pluginId == TQString::fromLatin1( "OscarProtocol" ) ) - pluginId = TQString::fromLatin1( "AIMProtocol" ); + if ( pluginId == TQString::tqfromLatin1( "OscarProtocol" ) ) + pluginId = TQString::tqfromLatin1( "AIMProtocol" ); TQDomNode field = element.firstChild(); while( !field.isNull() ) { TQDomElement fieldElement = field.toElement(); - if ( fieldElement.tagName() == TQString::fromLatin1( "plugin-data-field" ) ) + if ( fieldElement.tagName() == TQString::tqfromLatin1( "plugin-data-field" ) ) { - pluginData.insert( fieldElement.attribute( TQString::fromLatin1( "key" ), - TQString::fromLatin1( "undefined-key" ) ), fieldElement.text() ); + pluginData.insert( fieldElement.attribute( TQString::tqfromLatin1( "key" ), + TQString::tqfromLatin1( "undefined-key" ) ), fieldElement.text() ); } field = field.nextSibling(); } d->pluginData.insert( pluginId, pluginData ); } - else if ( element.tagName() == TQString::fromLatin1( "custom-icons" ) ) + else if ( element.tagName() == TQString::tqfromLatin1( "custom-icons" ) ) { - d->useCustomIcon= element.attribute( TQString::fromLatin1( "use" ), TQString::fromLatin1( "1" ) ) == TQString::fromLatin1( "1" ); + d->useCustomIcon= element.attribute( TQString::tqfromLatin1( "use" ), TQString::tqfromLatin1( "1" ) ) == TQString::tqfromLatin1( "1" ); TQDomNode ic = element.firstChild(); while( !ic.isNull() ) { TQDomElement iconElement = ic.toElement(); - if ( iconElement.tagName() == TQString::fromLatin1( "icon" ) ) + if ( iconElement.tagName() == TQString::tqfromLatin1( "icon" ) ) { - TQString stateStr = iconElement.attribute( TQString::fromLatin1( "state" ), TQString() ); + TQString stateStr = iconElement.attribute( TQString::tqfromLatin1( "state" ), TQString() ); TQString icon = iconElement.text(); IconState state = None; - if ( stateStr == TQString::fromLatin1( "open" ) ) + if ( stateStr == TQString::tqfromLatin1( "open" ) ) state = Open; - if ( stateStr == TQString::fromLatin1( "closed" ) ) + if ( stateStr == TQString::tqfromLatin1( "closed" ) ) state = Closed; - if ( stateStr == TQString::fromLatin1( "online" ) ) + if ( stateStr == TQString::tqfromLatin1( "online" ) ) state = Online; - if ( stateStr == TQString::fromLatin1( "offline" ) ) + if ( stateStr == TQString::tqfromLatin1( "offline" ) ) state = Offline; - if ( stateStr == TQString::fromLatin1( "away" ) ) + if ( stateStr == TQString::tqfromLatin1( "away" ) ) state = Away; - if ( stateStr == TQString::fromLatin1( "unknown" ) ) + if ( stateStr == TQString::tqfromLatin1( "unknown" ) ) state = Unknown; d->icons[ state ] = icon; -- cgit v1.2.1