diff options
Diffstat (limited to 'kopete/kopete/chatwindow/kopetechatwindowstylemanager.cpp')
-rw-r--r-- | kopete/kopete/chatwindow/kopetechatwindowstylemanager.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kopete/kopete/chatwindow/kopetechatwindowstylemanager.cpp b/kopete/kopete/chatwindow/kopetechatwindowstylemanager.cpp index 56f1844a..c7ee3673 100644 --- a/kopete/kopete/chatwindow/kopetechatwindowstylemanager.cpp +++ b/kopete/kopete/chatwindow/kopetechatwindowstylemanager.cpp @@ -98,7 +98,7 @@ void ChatWindowStyleManager::loadStyles() { TQStringList chatStyles = KGlobal::dirs()->findDirs( "appdata", TQString::fromUtf8( "styles" ) ); TQString localStyleDir( locateLocal( "appdata", TQString::fromUtf8("styles/"),true) ); - if( !chatStyles.tqcontains(localStyleDir)) + if( !chatStyles.contains(localStyleDir)) chatStyles<<localStyleDir; TQStringList::const_iterator it; @@ -289,14 +289,14 @@ bool ChatWindowStyleManager::removeStyle(const TQString &stylePath) // Find for the current style in avaiableStyles map. KURL urlStyle(stylePath); TQString styleName=urlStyle.fileName(); - StyleList::Iterator foundStyle = d->availableStyles.tqfind(styleName); + StyleList::Iterator foundStyle = d->availableStyles.find(styleName); // TQMap iterator return end() if it found no item. if(foundStyle != d->availableStyles.end()) { d->availableStyles.remove(foundStyle); // Remove and delete style from pool if needed. - if( d->stylePool.tqcontains(stylePath) ) + if( d->stylePool.contains(stylePath) ) { ChatWindowStyle *deletedStyle = d->stylePool[stylePath]; d->stylePool.remove(stylePath); @@ -314,7 +314,7 @@ bool ChatWindowStyleManager::removeStyle(const TQString &stylePath) ChatWindowStyle *ChatWindowStyleManager::getStyleFromPool(const TQString &stylePath) { - if( d->stylePool.tqcontains(stylePath) ) + if( d->stylePool.contains(stylePath) ) { // NOTE: This is a hidden config switch for style developers // Check in the config if the cache is disabled. @@ -348,19 +348,19 @@ void ChatWindowStyleManager::slotNewStyles(const KFileItemList &dirList) while( (item = it.current()) != 0 ) { // Ignore data dir(from deprecated XSLT themes) - if( !item->url().fileName().tqcontains(TQString::fromUtf8("data")) ) + if( !item->url().fileName().contains(TQString::fromUtf8("data")) ) { kdDebug(14000) << k_funcinfo << "Listing: " << item->url().fileName() << endl; // If the style path is already in the pool, that's mean the style was updated on disk // Reload the style - if( d->stylePool.tqcontains(item->url().path()) ) + if( d->stylePool.contains(item->url().path()) ) { kdDebug(14000) << k_funcinfo << "Updating style: " << item->url().path() << endl; d->stylePool[item->url().path()]->reload(); // Add to avaialble if required. - if( !d->availableStyles.tqcontains(item->url().fileName()) ) + if( !d->availableStyles.contains(item->url().fileName()) ) d->availableStyles.insert(item->url().fileName(), item->url().path()); } else |