Main Page   Class Hierarchy   Alphabetical List   Compound List   File List  

textscroll.diff

00001 --- textlabel.cpp       2003-04-18 22:35:00.000000000 +0200
00002 +++ textlabel.cpp       2003-04-18 20:05:59.000000000 +0200
00003 @@ -154,6 +154,7 @@
00004  {
00005      int i = 0; //lineHeight;
00006      int row = 1;
00007 +    int nx;
00008      if(move != 0){
00009        if(maxmove == 0){
00010        maxmove = 300;
00011 @@ -174,6 +175,10 @@
00012           position += move;
00013         }
00014       }
00015 +     nx = position + x;
00016 +    }
00017 +    else{
00018 +      nx = x;
00019      }
00020      p->setFont(font);
00021      QStringList::Iterator it = value.begin();
00022 @@ -182,11 +187,11 @@
00023          if( shadow != 0)
00024          {
00025              p->setPen( bgColor );
00026 -            p->drawText(position+x+shadow, y+i+shadow, width,
00027 +            p->drawText(nx+shadow, y+i+shadow, width,
00028                          height, alignment | clip | Qt::ExpandTabs,*it);
00029          }
00030          p->setPen( color );
00031 -        p->drawText(position+x,y+i,width,height, alignment | clip | Qt::ExpandTabs,*it);
00032 +        p->drawText(nx,y+i,width,height, alignment | clip | Qt::ExpandTabs,*it);
00033          i += lineHeight;
00034          it++;
00035          row++;

Generated on Tue Apr 29 19:56:58 2003 for karamba by doxygen1.2.18