added some graphics but only for debug

This commit is contained in:
peri4
2010-08-27 14:04:05 +04:00
parent b3854e867d
commit 95f3fb74fa
37 changed files with 876 additions and 707 deletions

23
animation.cpp Normal file
View File

@@ -0,0 +1,23 @@
#include "animation.h"
#include <QFile>
#include <QDebug>
Animation::Animation(const QString & path)
{
int i = 0;
QString s = path + QString::number(i) + ".png";
//qDebug() << "check " << s;
while (QFile::exists(s)) {
images.push_back(new QImage(s));
s = path + QString::number(++i) + ".png";
}
qDebug() << "found " << images.size() << " images";
}
Animation::~Animation()
{
}