diff options
Diffstat (limited to 'amor/amoranim.cpp')
-rw-r--r-- | amor/amoranim.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/amor/amoranim.cpp b/amor/amoranim.cpp index 61447f1..b4e595b 100644 --- a/amor/amoranim.cpp +++ b/amor/amoranim.cpp @@ -54,9 +54,9 @@ AmorAnim::~AmorAnim() // // Get the Pixmap for the current frame. // -const QPixmap *AmorAnim::frame() +const TQPixmap *AmorAnim::frame() { - const QPixmap *pixmap = 0; + const TQPixmap *pixmap = 0; if (validFrame()) pixmap = AmorPixmapManager::manager()->pixmap(*mSequence.at(mCurrent)); @@ -75,18 +75,18 @@ void AmorAnim::readConfig(KConfigBase &config) // manager. mSequence = config.readListEntry("Sequence"); int frames = mSequence.count(); - for ( QStringList::Iterator it = mSequence.begin(); + for ( TQStringList::Iterator it = mSequence.begin(); it != mSequence.end(); ++it ) { - const QPixmap *pixmap = + const TQPixmap *pixmap = AmorPixmapManager::manager()->load(*it); if (pixmap) mMaximumSize = mMaximumSize.expandedTo(pixmap->size()); } // Read the delays between frames. - QStrList list; + TQStrList list; int entries = config.readListEntry("Delay",list); mDelay.resize(frames); for (int i = 0; i < entries && i < frames; i++) @@ -113,10 +113,10 @@ void AmorAnim::readConfig(KConfigBase &config) mHotspot[i].setY(atoi(list.at(i))); // Add the overlap of the last frame to the total movement. - const QPoint &lastHotspot = mHotspot[mHotspot.size()-1]; + const TQPoint &lastHotspot = mHotspot[mHotspot.size()-1]; if (mTotalMovement > 0) { - const QPixmap *lastFrame = + const TQPixmap *lastFrame = AmorPixmapManager::manager()->pixmap(mSequence.last()); if (lastFrame) { @@ -147,7 +147,7 @@ AmorThemeManager::~AmorThemeManager() //--------------------------------------------------------------------------- // -bool AmorThemeManager::setTheme(const QString & file) +bool AmorThemeManager::setTheme(const TQString & file) { mPath = locate("appdata", file); @@ -158,7 +158,7 @@ bool AmorThemeManager::setTheme(const QString & file) // Get the directory where the pixmaps are stored and tell the // pixmap manager. - QString pixmapPath = mConfig->readPathEntry("PixmapPath"); + TQString pixmapPath = mConfig->readPathEntry("PixmapPath"); if (pixmapPath.isEmpty()) return false; @@ -188,9 +188,9 @@ bool AmorThemeManager::setTheme(const QString & file) // // Select an animimation randomly from a group // -AmorAnim *AmorThemeManager::random(const QString & group) +AmorAnim *AmorThemeManager::random(const TQString & group) { - QString grp( group ); + TQString grp( group ); if (mStatic) grp = "Base"; @@ -209,7 +209,7 @@ AmorAnim *AmorThemeManager::random(const QString & group) // // Read an animation group. // -bool AmorThemeManager::readGroup(const QString & seq) +bool AmorThemeManager::readGroup(const TQString & seq) { AmorPixmapManager::manager()->setPixmapDir(mPath); @@ -218,7 +218,7 @@ bool AmorThemeManager::readGroup(const QString & seq) // Read the list of available animations. mConfig->setGroup("Config"); - QStrList list; + TQStrList list; int entries = mConfig->readListEntry(seq, list); // Read each individual animation |