Exemple #1
0
LinkLook::LinkLook(const LinkLook &other)
{
    m_useLinkColor = other.useLinkColor();
    m_canPreview   = other.canPreview();
    setLook(other.italic(), other.bold(), other.underlining(),
            other.color(), other.hoverColor(),
            other.iconSize(), other.preview());
}
void Camera::setAt(const Point3& at) {
	// set the point the camera is looking at
	// calling this requires that the from (or eye) point already be valid
	Looking_at[0] = at[0];
	Looking_at[1] = at[1];
	Looking_at[2] = at[2];
	setLook(Looking_at);

}
Exemple #3
0
void MainGLWidget::paintGL()
{
    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    glLoadIdentity();
    glRotatef(0.0, 1.0, 0.0, 0.0);

    //SetLights();
    setLook();
    DrawGLMap(World::instance()->getMap());
    //MovingCamera();
}
Exemple #4
0
KstDataNotifier::KstDataNotifier(QWidget *parent)
: KLed(QColor(0, 255, 0), parent) {
  off();
  setShape(Rectangular);
  setLook(Sunken);
  _animationStage = 0;
  this->setToolTip(tr("Indicates that new data has arrived."));
  show();

  _colors = new QColor[numIterations];
  for(unsigned int i=0; i<numIterations; ++i) {
    _colors[i] = QColor(0, 255, 0).dark(dark[i]);
  }
}
Exemple #5
0
void LinkLabel::setLink(const QString &title, const QString &icon, LinkLook *look)
{
    if (look)
        m_look = look; // Needed for icon size

    m_title->setText(title);
    m_title->setShown(! title.isEmpty());

    if (icon.isEmpty())
        m_icon->clear();
    else {
        QPixmap pixmap = DesktopIcon(icon, m_look->iconSize(), m_look->iconSize());
        if (!pixmap.isNull())
            m_icon->setPixmap(pixmap);
    }
    m_icon->setShown(! icon.isEmpty());

    if (look)
        setLook(look);
}