Source Code (Use browser search to find items of interest.)

Class Index

kicker'AppletHandle (./kdebase/kicker/appletcontainer.h:135)

class AppletHandle : public QWidget
{
 public:
  AppletHandle(QWidget* parent = 0, const char* name = 0)
    : QWidget(parent, name) {}

  void setOrientation(Orientation o) { _orient = o; }

 protected:
  void paintEvent(QPaintEvent *);
  Orientation _orient;

};

// base class for internal and external appllet containers

kicker'AppletHandle::paintEvent() (./kdebase/kicker/appletcontainer.cpp:54)

void AppletHandle::paintEvent(QPaintEvent *) 
{
  QPainter p;
  p.begin(this);

  QColor c1(255, 255, 255);
  QColor c2(80, 80, 80);

  if (_orient == Horizontal)
    {
      for(int y = 2; y < height() - 2; y++)
        {
          p.setPen(c1);
          p.drawPoint(0, y++);
          p.setPen(c2);
          p.drawPoint(1, y++);
          y++;
          p.setPen(c1);
          p.drawPoint(3, y++);
          p.setPen(c2);
          p.drawPoint(4, y);
        }
    }
  else
    {
      for(int x = 2; x < width() - 2; x++)
        {
          p.setPen(c1);
          p.drawPoint(x++, 0);
          p.setPen(c2);
          p.drawPoint(x++, 1);
          x++;
          p.setPen(c1);
          p.drawPoint(x++, 3);
          p.setPen(c2);
          p.drawPoint(x, 4);
        }
    }
  p.end();
  
}