Logo Search packages:      
Sourcecode: kbfx version File versions  Download package

void KbfxSpixTop::paintEvent ( QPaintEvent *  pe  )  [virtual]

p.setBrush (ConfigInit().m_userNameColor);

Definition at line 241 of file spinxtop.cpp.

{

//  _downOffSet = this->height () - (down.height () + 5);
  const QRect r = pe->rect ();

  pixmapbuff = new QPixmap();
  pixmapbuff->resize(r.size());
  pixmapbuff->fill(this, r.topLeft());

 QPainter p;
  p.begin (pixmapbuff,this);

  if (!_m_bg->isNull ())
    {
//p.begin(this);
//    QPixmap tmp(r.size());
      //p.drawPixmap (r,tmp);
  //      p.drawPixmap (r, (*this->pixmap()));

      p.translate(-r.x(), -r.y());      
        p.drawPixmap(r,*_m_bg);
//      p.setPen (QColor (255, 255, 255));
  //   ConfigInit().read();
      p.setPen(this->m_userNameColor);
      QFont *let = new QFont ();
      let->setBold (true);
      let->setPointSize (10);
      p.setFont (*let);
      p.drawText (boundBox.width () + 15,
              5, 200, 20, Qt::SingleLine, this->getUserName ());
      let->setBold (false);
      let->setPointSize (6);
      p.setFont (*let);
      p.drawPixmap (QRect
                (boundBox.width () + 17, 28, scrollText_settings.width (),
                 scrollText_settings.height ()), scrollText_settings);

//     ConfigInit().read();

///     p.setBrush (ConfigInit().m_userNameColor);

   delete let;
      if (moseEnter)
      {
//


//
        p.drawPixmap (QRect
                  (this->width () - (down.width () + 5),
                   (_downOffSet), 9, 11), down);
        p.drawPixmap (QRect
                  (this->width () - (down.width () + 5), _upOffSet, 9,
                   11), up);

        p.drawPixmap (QRect
                  (this->width () -
                   (scrollText_up.width () + down.width () + 14),
                   up.height () - 3, scrollText_up.width (),
                   scrollText_up.height ()), scrollText_up);

        p.drawPixmap (QRect
                  (this->width () -
                   (scrollText_down.width () + down.width () +
                    abs (scrollText_down.width () -
                         scrollText_up.width ())),
                   (this->height () - (down.width () + 5)) + 1,
                   scrollText_down.width (), scrollText_down.height ()),
                  scrollText_down);

      }

      p.end ();
    }


bitBlt(this, r.x(), r.y(), pixmapbuff, 0, 0,
       r.width(), r.height());
delete  pixmapbuff;

}


Generated by  Doxygen 1.6.0   Back to index