summaryrefslogtreecommitdiffstats
path: root/kopete/kopete/chatwindow/kopetechatwindowstylemanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/kopete/chatwindow/kopetechatwindowstylemanager.cpp')
-rw-r--r--kopete/kopete/chatwindow/kopetechatwindowstylemanager.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kopete/kopete/chatwindow/kopetechatwindowstylemanager.cpp b/kopete/kopete/chatwindow/kopetechatwindowstylemanager.cpp
index cb3291e7..56f1844a 100644
--- a/kopete/kopete/chatwindow/kopetechatwindowstylemanager.cpp
+++ b/kopete/kopete/chatwindow/kopetechatwindowstylemanager.cpp
@@ -17,7 +17,7 @@
#include "kopetechatwindowstylemanager.h"
-// Qt includes
+// TQt includes
#include <tqvaluestack.h>
// KDE includes
@@ -81,8 +81,8 @@ ChatWindowStyleManager *ChatWindowStyleManager::self()
return s_self;
}
-ChatWindowStyleManager::ChatWindowStyleManager(TQObject *parent, const char *name)
- : TQObject(parent, name), d(new Private())
+ChatWindowStyleManager::ChatWindowStyleManager(TQObject *tqparent, const char *name)
+ : TQObject(tqparent, name), d(new Private())
{
kdDebug(14000) << k_funcinfo << endl;
loadStyles();
@@ -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.contains(localStyleDir))
+ if( !chatStyles.tqcontains(localStyleDir))
chatStyles<<localStyleDir;
TQStringList::const_iterator it;
@@ -164,7 +164,7 @@ int ChatWindowStyleManager::installStyle(const TQString &styleBundlePath)
// Each time we found a correspondance to a theme bundle, we add a point to validResult.
// A valid style bundle must have:
// -a Contents, Contents/Resources, Co/Res/Incoming, Co/Res/Outgoing dirs
- // main.css, Footer.html, Header.html, Status.html files in Contents/Ressources.
+ // main.css, Footer.html, Header.html, tqStatus.html files in Contents/Ressources.
// So for a style bundle to be valid, it must have a result greather than 8, because we test for 8 required entry.
int validResult = 0;
TQStringList entries = rootDir->entries();
@@ -209,9 +209,9 @@ int ChatWindowStyleManager::installStyle(const TQString &styleBundlePath)
// kdDebug() << k_funcinfo << "Contents/Resources/Footer.html found" << endl;
validResult += 1;
}
- if( currentDir->entry(TQString::fromUtf8("Contents/Resources/Status.html")) )
+ if( currentDir->entry(TQString::fromUtf8("Contents/Resources/tqStatus.html")) )
{
-// kdDebug() << k_funcinfo << "Contents/Resources/Status.html found" << endl;
+// kdDebug() << k_funcinfo << "Contents/Resources/tqStatus.html found" << endl;
validResult += 1;
}
if( currentDir->entry(TQString::fromUtf8("Contents/Resources/Header.html")) )
@@ -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.find(styleName);
+ StyleList::Iterator foundStyle = d->availableStyles.tqfind(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.contains(stylePath) )
+ if( d->stylePool.tqcontains(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.contains(stylePath) )
+ if( d->stylePool.tqcontains(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().contains(TQString::fromUtf8("data")) )
+ if( !item->url().fileName().tqcontains(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.contains(item->url().path()) )
+ if( d->stylePool.tqcontains(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.contains(item->url().fileName()) )
+ if( !d->availableStyles.tqcontains(item->url().fileName()) )
d->availableStyles.insert(item->url().fileName(), item->url().path());
}
else