summaryrefslogtreecommitdiffstats
path: root/amor/amoranim.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:49:52 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:49:52 +0000
commitcfc42a28c327b96c6a2afee92af3bac1a479eb8a (patch)
treee3219edf5f827eaa4db3feb509a17846a1a5a752 /amor/amoranim.cpp
parenta73fc4d7e66fe0824313aa4e9a650c4cddef6e9f (diff)
downloadtdetoys-cfc42a28c327b96c6a2afee92af3bac1a479eb8a.tar.gz
tdetoys-cfc42a28c327b96c6a2afee92af3bac1a479eb8a.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdetoys@1157650 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'amor/amoranim.cpp')
-rw-r--r--amor/amoranim.cpp26
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