24     : nbFrames(0), curFrame(0)
    55         this->data.append(data.at(i));
    73     if(
data.isEmpty())  
return QPixmap();
    75     if(!chocobo_world_icon)
    78         const char *access_data = 
data.constData();
    83             memcpy(&color, access_data, 2);
    84             colors.append(qRgb((color & 31)*8.2258, (color>>5 & 31)*8.2258, (color>>10 & 31)*8.2258));
    88         QImage image(16, 16, QImage::Format_RGB32);
    90         quint16 firstPos = 32+
curFrame*128, lastPos = firstPos+128;
    92         if(
data.size()<lastPos) 
return QPixmap();
    94         for(i=firstPos ; i<lastPos ; ++i)
    96             index = (quint8)
data.at(i);
    98             image.setPixel(x, y, colors.at(index & 0xF));
   108             image.setPixel(x, y, colors.at(index >> 4));
   119         return QPixmap::fromImage(image);
   122     if(
data.size()!=288)    
return QPixmap();
   124     QImage image(32, 32, QImage::Format_Mono);
   127     for(i=160 ; i<288 ; ++i)
   129         curPx = (quint8)
data.at(i);
   132             image.setPixel(x, y, !((curPx >> j) & 1));
   144     return QPixmap::fromImage(image);
   152     QPixmap pix = 
icon();
 QByteArray sauver()
incase you wish to write the icon to a file 
 
void setAll(QByteArray data, quint8 nbFrames=1)
fill SaveIcon with data 
 
void nextFrame()
get get next icon if more then one frame 
 
QPixmap icon(bool chocobo_world_icon=false)
pixmap of your icon 
 
SaveIcon()
create a new Save icon 
 
static QTimer timer
frame change timer. 
 
QByteArray data
hold our icon data 
 
quint8 curFrame
current Frame 
 
quint8 nbFrames
number of frames 
 
void nextIcon(QPixmap)
Emit Signal: Time to update your QPixmap. connect to object your displaying on to tell it time for a ...